Skip to content

Commit a227f67

Browse files
authored
Update Time as always LTR (#51543)
* Update `Time` as always LTR * Fix HistoricalMetrics layout for RTL
1 parent 6fbf413 commit a227f67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

airflow-core/src/airflow/ui/src/components/Assets/AssetEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const AssetEvents = ({
6666
});
6767

6868
return (
69-
<Box borderBottomWidth={0} borderRadius={5} borderWidth={1} ml={2} p={4} py={2} {...rest}>
69+
<Box borderBottomWidth={0} borderRadius={5} borderWidth={1} p={4} py={2} {...rest}>
7070
<Flex alignItems="center" justify="space-between">
7171
<HStack>
7272
<StateBadge colorPalette="blue" fontSize="md" variant="solid">

airflow-core/src/airflow/ui/src/components/Time.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Time = ({ datetime, format = defaultFormat, showTooltip = true, ...rest }:
5050
const utcTime = time.tz("UTC").format(defaultFormatWithTZ);
5151

5252
return (
53-
<chakra.span {...rest}>
53+
<chakra.span dir="ltr" {...rest}>
5454
<time
5555
dateTime={datetime}
5656
// show title if date is not UTC

airflow-core/src/airflow/ui/src/pages/Dashboard/HistoricalMetrics/HistoricalMetrics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const HistoricalMetrics = () => {
8585
setStartDate={setStartDate}
8686
startDate={startDate}
8787
/>
88-
<SimpleGrid columns={{ base: 10 }}>
88+
<SimpleGrid columns={{ base: 10 }} gap={2}>
8989
<GridItem colSpan={{ base: 7 }}>
9090
{isLoading ? <MetricSectionSkeleton /> : undefined}
9191
{!isLoading && data !== undefined && (

0 commit comments

Comments
 (0)