Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Nov 9, 2024
1 parent 4e7c86a commit 52455dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ body:has(#app-toolbar) .editor-container [id] {
user-select: text;
white-space: pre-wrap;
word-break: break-word;
text-align: left;
flex: 1 1;
position: relative;
tab-size: 1;
outline: 0;
}

.excalidraw.excalidraw-modal-container,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Documents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const Documents: React.FC<{ staticDocuments: UserDocument[] }> = ({ staticDocume
<Avatar sx={{ my: 2, bgcolor: 'primary.main' }}><PostAdd /></Avatar>
<Button variant="outlined" component={RouterLink} prefetch={false} scroll={false} href="/new">New document</Button>
</Box>
<Box sx={{ display: "flex", flexWrap: "wrap", justifyContent: { xs: "space-around", sm: "space-between" }, alignItems: "center", position: "sticky", top: { 'xs': 56, 'sm': 64 }, backgroundColor: 'var(--mui-palette-background-default)', zIndex: 2, py: 1 }}>
<Box sx={{ display: "flex", flexWrap: "wrap", justifyContent: { xs: "space-around", sm: "space-between" }, alignItems: "center", position: "sticky", top: { 'xs': 55.99, 'sm': 63.99 }, backgroundColor: 'var(--mui-palette-background-default)', zIndex: 2, py: 1 }}>
<Typography variant="h6" component="h2" sx={{ display: { xs: 'none', sm: 'block' } }}>Documents</Typography>
<Box sx={{ display: "flex", flexWrap: "wrap", gap: 0.5, justifyContent: "center", mb: 1 }}>
<Box sx={{ display: "flex", flexWrap: "wrap", gap: 0.5, justifyContent: "center" }}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/User/UserDocuments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const UserDocuments: React.FC<{ documents?: UserDocument[] }> = ({ documents })
return (
<Box sx={{ display: 'flex', flexDirection: "column", flex: 1 }}>
{!showLoading && !showEmpty && <>
<Box sx={{ display: "flex", flexWrap: "wrap", justifyContent: 'space-between', alignItems: "center", gap: 1, minHeight: 40, position: "sticky", top: { 'xs': 56, 'sm': 64 }, backgroundColor: 'var(--mui-palette-background-default)', zIndex: 2, py: 1 }}>
<Box sx={{ display: "flex", flexWrap: "wrap", justifyContent: 'space-between', alignItems: "center", gap: 1, minHeight: 40, position: "sticky", top: { 'xs': 55.99, 'sm': 63.99 }, backgroundColor: 'var(--mui-palette-background-default)', zIndex: 2, py: 1 }}>
<Typography variant="h6" component="h2" sx={{ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>Published Documents</Typography>
<DocumentSortControl value={sort} setValue={setSort} />
</Box>
Expand Down

0 comments on commit 52455dc

Please sign in to comment.