Skip to content

Commit baad10f

Browse files
committed
fixing chromatic snapshots
1 parent eb45886 commit baad10f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const WorkspaceScheduleButton: React.FC<WorkspaceScheduleButtonProps> = (
7575

7676
return (
7777
<span className={styles.wrapper}>
78-
<div className={styles.label}>
78+
<span className={styles.label}>
7979
<WorkspaceScheduleLabel workspace={workspace} />
8080
{canUpdateWorkspace && shouldDisplayPlusMinus(workspace) && (
8181
<Stack direction="row" spacing={0}>
@@ -101,7 +101,7 @@ export const WorkspaceScheduleButton: React.FC<WorkspaceScheduleButtonProps> = (
101101
</IconButton>
102102
</Stack>
103103
)}
104-
</div>
104+
</span>
105105
<>
106106
<Button
107107
ref={anchorRef}
@@ -137,16 +137,13 @@ export const WorkspaceScheduleButton: React.FC<WorkspaceScheduleButtonProps> = (
137137

138138
const useStyles = makeStyles((theme) => ({
139139
wrapper: {
140-
display: "flex",
141-
alignItems: "center",
140+
display: "inline-block",
142141
border: `1px solid ${theme.palette.divider}`,
143142
borderRadius: `${theme.shape.borderRadius}px`,
144143
},
145144
label: {
146145
borderRight: 0,
147146
height: "100%",
148-
display: "flex",
149-
alignItems: "center",
150147
padding: "0 8px 0 16px",
151148
color: theme.palette.text.secondary,
152149
// It is from the button props

0 commit comments

Comments
 (0)