Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 677b19f

Browse files
committed
Fix buttons
1 parent 2383903 commit 677b19f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

site/src/components/SearchBarWithFilter/SearchBarWithFilter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
166166
border: `1px solid ${theme.palette.divider}`,
167167
borderRight: "0px",
168168
borderRadius: `${theme.shape.borderRadius}px 0px 0px ${theme.shape.borderRadius}px`,
169+
flexShrink: 0,
169170
},
170171
errorRoot: {
171172
color: theme.palette.error.main,

site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const WorkspaceScheduleButton: React.FC<WorkspaceScheduleButtonProps> = (
7777
<span className={styles.label}>
7878
<WorkspaceScheduleLabel workspace={workspace} />
7979
{canUpdateWorkspace && shouldDisplayPlusMinus(workspace) && (
80-
<span>
80+
<span className={styles.actions}>
8181
<IconButton
8282
className={styles.iconButton}
8383
size="small"
@@ -148,6 +148,13 @@ const useStyles = makeStyles((theme) => ({
148148

149149
[theme.breakpoints.down("md")]: {
150150
width: "100%",
151+
display: "flex",
152+
alignItems: "center",
153+
},
154+
},
155+
actions: {
156+
[theme.breakpoints.down("md")]: {
157+
marginLeft: "auto",
151158
},
152159
},
153160
scheduleButton: {

site/src/theme/overrides.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
3636
textTransform: "none",
3737
letterSpacing: "none",
3838
border: `1px solid ${palette.divider}`,
39-
flexShrink: 0,
4039
},
4140
contained: {
4241
boxShadow: "none",

0 commit comments

Comments
 (0)