Skip to content

fix: Fix responsive for workspaces and workspace page #3189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix buttons
  • Loading branch information
BrunoQuaresma committed Jul 26, 2022
commit 677b19fa5bfcba66357fc751c8e0b3031351a8c6
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const useStyles = makeStyles<Theme, StyleProps>((theme) => ({
border: `1px solid ${theme.palette.divider}`,
borderRight: "0px",
borderRadius: `${theme.shape.borderRadius}px 0px 0px ${theme.shape.borderRadius}px`,
flexShrink: 0,
},
errorRoot: {
color: theme.palette.error.main,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const WorkspaceScheduleButton: React.FC<WorkspaceScheduleButtonProps> = (
<span className={styles.label}>
<WorkspaceScheduleLabel workspace={workspace} />
{canUpdateWorkspace && shouldDisplayPlusMinus(workspace) && (
<span>
<span className={styles.actions}>
<IconButton
className={styles.iconButton}
size="small"
Expand Down Expand Up @@ -148,6 +148,13 @@ const useStyles = makeStyles((theme) => ({

[theme.breakpoints.down("md")]: {
width: "100%",
display: "flex",
alignItems: "center",
},
},
actions: {
[theme.breakpoints.down("md")]: {
marginLeft: "auto",
},
},
scheduleButton: {
Expand Down
1 change: 0 additions & 1 deletion site/src/theme/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
textTransform: "none",
letterSpacing: "none",
border: `1px solid ${palette.divider}`,
flexShrink: 0,
},
contained: {
boxShadow: "none",
Expand Down