Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dliu27 committed Nov 13, 2024
1 parent b711bcc commit 9e8213d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,14 @@ export const VirtualizedAutomationScheduleRow = forwardRef(
</Tooltip>
</RowCell>
<RowCell>
{/* Left aligned content */}
<Box flex={{direction: 'row', gap: 8, alignItems: 'flex-start'}}>
<Box
flex={{
direction: 'row',
gap: 8,
alignItems: 'flex-start',
justifyContent: 'space-between',
}}
>
<Box flex={{grow: 1, gap: 8}}>
{scheduleData ? (
<>
Expand All @@ -158,7 +164,6 @@ export const VirtualizedAutomationScheduleRow = forwardRef(
<MiddleTruncate text={name} />
</Link>
</Box>
{/* Right aligned content */}
<EvaluateTickButtonScheduleWrapper>
<EvaluateTickButtonSchedule
name={scheduleData?.name || ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,14 @@ export const VirtualizedAutomationSensorRow = forwardRef(
</Tooltip>
</RowCell>
<RowCell>
<Box flex={{direction: 'row', gap: 8, alignItems: 'flex-start'}}>
{/* Left aligned content */}
<Box
flex={{
direction: 'row',
gap: 8,
alignItems: 'flex-start',
justifyContent: 'space-between',
}}
>
<Box flex={{grow: 1, gap: 8}}>
{/* Keyed so that a new switch is always rendered, otherwise it's reused and animates on/off */}
{sensorData ? (
Expand All @@ -157,7 +163,6 @@ export const VirtualizedAutomationSensorRow = forwardRef(
<MiddleTruncate text={name} />
</Link>
</Box>
{/* Right aligned content */}
{sensorData ? (
<EvaluateTickButtonSensorWrapper>
<EvaluateTickButtonSensor
Expand Down

0 comments on commit 9e8213d

Please sign in to comment.