Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4604f19

Browse files
refactor: increase workspace and template avatar size (#17200)
**Before**<img width="1363" alt="Screenshot 2025-04-01 at 14 46 10"src="https://github.com/user-attachments/assets/d3d76d70-df16-4b27-a138-e493e0bcac83"/><img width="1360" alt="Screenshot 2025-04-01 at 14 45 55"src="https://github.com/user-attachments/assets/bbae38fe-6ed2-42fa-99b0-e24f6c8d382d"/>**After**<img width="1359" alt="Screenshot 2025-04-01 at 14 46 18"src="https://github.com/user-attachments/assets/230b606b-fd5f-4e42-9ca2-56ddb2e1f617"/><img width="1362" alt="Screenshot 2025-04-01 at 14 46 02"src="https://github.com/user-attachments/assets/b22d4b59-4660-47dd-a362-e8d842dd2a82"/>
1 parenta3248f9 commit4604f19

File tree

5 files changed

+15
-27
lines changed

5 files changed

+15
-27
lines changed

‎site/src/components/Avatar/AvatarData.tsx

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,17 @@ export const AvatarData: FC<AvatarDataProps> = ({
3737
}
3838

3939
return(
40-
<Stackspacing={1}direction="row"className="w-full">
40+
<divclassName="flex items-centerw-full gap-3">
4141
{avatar}
4242

43-
<Stackspacing={0}className="w-full">
44-
<span
45-
css={{
46-
color:theme.palette.text.primary,
47-
fontWeight:600,
48-
}}
49-
>
50-
{title}
51-
</span>
43+
<divclassName="flex flex-col w-full">
44+
<spanclassName="text-sm font-semibold">{title}</span>
5245
{subtitle&&(
53-
<span
54-
css={{
55-
fontSize:13,
56-
color:theme.palette.text.secondary,
57-
lineHeight:1.5,
58-
maxWidth:540,
59-
}}
60-
>
46+
<spanclassName="text-content-secondary text-xs font-medium">
6147
{subtitle}
6248
</span>
6349
)}
64-
</Stack>
65-
</Stack>
50+
</div>
51+
</div>
6652
);
6753
};

‎site/src/components/Avatar/AvatarDataSkeleton.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import type { FC } from "react";
44

55
exportconstAvatarDataSkeleton:FC=()=>{
66
return(
7-
<Stackspacing={1}direction="row"className="w-full">
8-
<Skeletonvariant="rectangular"className="size-6 rounded-sm"/>
7+
<divclassName="flex items-center gap-3w-full">
8+
<Skeletonvariant="rectangular"className="size-10 rounded-sm"/>
99

10-
<Stackspacing={0}>
10+
<divclassName="flex flex-col w-full">
1111
<Skeletonvariant="text"width={100}/>
1212
<Skeletonvariant="text"width={60}/>
13-
</Stack>
14-
</Stack>
13+
</div>
14+
</div>
1515
);
1616
};

‎site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const TemplateRow: FC<TemplateRowProps> = ({ showOrganizations, template }) => {
113113
subtitle={template.description}
114114
avatar={
115115
<Avatar
116+
size="lg"
116117
variant="icon"
117118
src={template.icon}
118119
fallback={template.display_name||template.name}

‎site/src/pages/WorkspacesPage/WorkspacesTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
221221
}
222222
subtitle={
223223
<div>
224-
<spancss={{ ...visuallyHidden}}>User:</span>
224+
<spancss={{ ...visuallyHidden}}>Owner:</span>
225225
{workspace.owner_name}
226226
</div>
227227
}
@@ -230,6 +230,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
230230
variant="icon"
231231
src={workspace.template_icon}
232232
fallback={workspace.name}
233+
size="lg"
233234
/>
234235
}
235236
/>

‎site/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616
fontSize:{
1717
"2xs":["0.625rem","0.875rem"],
18-
xs:["0.75rem","1.125rem"],
18+
xs:["0.75rem","1rem"],
1919
sm:["0.875rem","1.5rem"],
2020
"3xl":["2rem","2.5rem"],
2121
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp