Skip to content

Commit

Permalink
feat: make profile material you
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Feb 11, 2024
1 parent 3745d4b commit 5be21a9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/profile/profile-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ProfileBox = styled(Box)(({
textAlign: "left",
borderRadius: theme.shape.borderRadius,
boxShadow: theme.shadows[2],
padding: "8px 16px",
padding: "10px 14px",
boxSizing: "border-box",
backgroundColor,
color,
Expand Down
3 changes: 3 additions & 0 deletions src/components/profile/profile-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ export const ProfileItem = (props: Props) => {
setAnchorEl(event.currentTarget);
event.preventDefault();
}}
sx={{
borderRadius: 4,
}}
>
{activating && (
<Box
Expand Down
3 changes: 3 additions & 0 deletions src/pages/profiles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:global(section) {
overflow-x: hidden;
}
15 changes: 12 additions & 3 deletions src/pages/profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ export default function ProfilePage() {
sx={{ input: { py: 0.65, px: 1.25 } }}
placeholder={t("Profile URL")}
InputProps={{
sx: { pr: 1 },
sx: {
borderRadius: 4,
pr: 1,
},
endAdornment: !url ? (
<IconButton
size="small"
Expand Down Expand Up @@ -341,13 +344,19 @@ export default function ProfilePage() {
variant="contained"
size="small"
onClick={onImport}
sx={{
borderRadius: 4,
}}
>
{t("Import")}
</LoadingButton>
<Button
variant="contained"
size="small"
onClick={() => viewerRef.current?.create()}
sx={{
borderRadius: 4,
}}
>
{t("New")}
</Button>
Expand All @@ -359,14 +368,14 @@ export default function ProfilePage() {
onDragEnd={onDragEnd}
>
<Box sx={{ mb: 4.5 }}>
<Grid container spacing={{ xs: 1, lg: 1 }}>
<Grid container spacing={{ xs: 3, lg: 3 }}>
<SortableContext
items={regularItems.map((x) => {
return x.uid;
})}
>
{regularItems.map((item) => (
<Grid item xs={12} sm={6} md={4} lg={3} key={item.file}>
<Grid item xs={12} md={6} lg={4} xl={3} key={item.file}>
<ProfileItem
id={item.uid}
selected={profiles.current === item.uid}
Expand Down

0 comments on commit 5be21a9

Please sign in to comment.