Skip to content

Commit

Permalink
Add some padding to the file name menu list items (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewish committed Jul 8, 2024
1 parent acbccce commit 400602b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/drawer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ button.fab {
:global(.dark) .githubMark {
filter: invert(100%);
}

.filenameText {
margin-right: 20px;
}
5 changes: 4 additions & 1 deletion client/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function Drawer() {
/>
)}
</ListItemIcon>
<ListItemText>
<ListItemText className={styles.filenameText}>
{drawingId.localId
? drawingId.localId
: drawingId.shareSpec
Expand Down Expand Up @@ -556,6 +556,7 @@ function NewDrawingButton() {
<DialogContent>
<TextField
error={!validDrawingName}
autoFocus={true}
label="Drawing name"
helperText={!validDrawingName && "Drawing name must be unique."}
defaultValue={defaultNewDrawingName}
Expand Down Expand Up @@ -600,6 +601,7 @@ function RenameDrawingButton({ drawingId }: { drawingId: DrawingId }) {
<DialogContent>Provide a new name for the drawing.</DialogContent>
<DialogContent>
<TextField
autoFocus={true}
error={!validDrawingName}
label="Drawing name"
helperText={!validDrawingName && "Drawing name already exists."}
Expand Down Expand Up @@ -661,6 +663,7 @@ function ForkDrawingButton({
<DialogContent>
<TextField
error={!validDrawingName}
autoFocus={true}
label="Drawing name"
helperText={!validDrawingName && "Drawing name already exists."}
defaultValue={defaultNewDrawingName}
Expand Down

0 comments on commit 400602b

Please sign in to comment.