-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: connection timeline alignment bugs (#13398)
- Loading branch information
Showing
14 changed files
with
124 additions
and
106 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...p/src/pages/connections/ConnectionTimelinePage/ConnectionTimelineEventActions.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@use "scss/variables"; | ||
|
||
.eventActions { | ||
display: flex; | ||
gap: variables.$spacing-xs; | ||
align-items: center; | ||
flex-shrink: 0; | ||
min-width: max-content; | ||
} |
27 changes: 27 additions & 0 deletions
27
...te-webapp/src/pages/connections/ConnectionTimelinePage/ConnectionTimelineEventActions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { FormattedDate } from "react-intl"; | ||
|
||
import { Text } from "components/ui/Text"; | ||
|
||
import styles from "./ConnectionTimelineEventActions.module.scss"; | ||
import { JobEventMenu } from "./JobEventMenu"; | ||
|
||
interface ConnectionTimelineEventActionsProps { | ||
jobId: number; | ||
eventId?: string; | ||
createdAt: number; | ||
} | ||
|
||
export const ConnectionTimelineEventActions: React.FC<ConnectionTimelineEventActionsProps> = ({ | ||
jobId, | ||
eventId, | ||
createdAt, | ||
}) => { | ||
return ( | ||
<div className={styles.eventActions}> | ||
<Text color="grey400"> | ||
<FormattedDate value={createdAt * 1000} timeStyle="short" dateStyle="medium" /> | ||
</Text> | ||
<JobEventMenu jobId={jobId} eventId={eventId} /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...p/src/pages/connections/ConnectionTimelinePage/ConnectionTimelineEventSummary.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.eventSummary { | ||
flex-grow: 1; | ||
min-width: 0; | ||
} |
7 changes: 7 additions & 0 deletions
7
...te-webapp/src/pages/connections/ConnectionTimelinePage/ConnectionTimelineEventSummary.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
import styles from "./ConnectionTimelineEventSummary.module.scss"; | ||
|
||
export const ConnectionTimelineEventSummary: React.FC<PropsWithChildren> = ({ children }) => { | ||
return <div className={styles.eventSummary}>{children}</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
...app/src/pages/connections/ConnectionTimelinePage/components/SyncFailEventItem.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
.failureDetails { | ||
.details { | ||
white-space: pre-wrap; | ||
} | ||
|
||
.container { | ||
min-width: 0; | ||
} | ||
|
||
.endContent { | ||
flex-shrink: 0; | ||
min-width: max-content; | ||
} |
Oops, something went wrong.