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

refactor: increase workspace and template avatar size#17200

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 2 commits intomainfrombq/avatars
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
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
26 changes: 6 additions & 20 deletionssite/src/components/Avatar/AvatarData.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,31 +37,17 @@ export const AvatarData: FC<AvatarDataProps> = ({
}

return (
<Stack spacing={1} direction="row"className="w-full">
<divclassName="flex items-centerw-full gap-3">
{avatar}

<Stack spacing={0} className="w-full">
<span
css={{
color: theme.palette.text.primary,
fontWeight: 600,
}}
>
{title}
</span>
<div className="flex flex-col w-full">
<span className="text-sm font-semibold">{title}</span>
{subtitle && (
<span
css={{
fontSize: 13,
color: theme.palette.text.secondary,
lineHeight: 1.5,
maxWidth: 540,
}}
>
<span className="text-content-secondary text-xs font-medium">
{subtitle}
</span>
)}
</Stack>
</Stack>
</div>
</div>
);
};
10 changes: 5 additions & 5 deletionssite/src/components/Avatar/AvatarDataSkeleton.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,13 +4,13 @@ import type { FC } from "react";

export const AvatarDataSkeleton: FC = () => {
return (
<Stack spacing={1} direction="row"className="w-full">
<Skeleton variant="rectangular" className="size-6 rounded-sm" />
<divclassName="flex items-center gap-3w-full">
<Skeleton variant="rectangular" className="size-10 rounded-sm" />

<Stack spacing={0}>
<div className="flex flex-col w-full">
<Skeleton variant="text" width={100} />
<Skeleton variant="text" width={60} />
</Stack>
</Stack>
</div>
</div>
);
};
1 change: 1 addition & 0 deletionssite/src/pages/TemplatesPage/TemplatesPageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -113,6 +113,7 @@ const TemplateRow: FC<TemplateRowProps> = ({ showOrganizations, template }) => {
subtitle={template.description}
avatar={
<Avatar
size="lg"
variant="icon"
src={template.icon}
fallback={template.display_name || template.name}
Expand Down
3 changes: 2 additions & 1 deletionsite/src/pages/WorkspacesPage/WorkspacesTable.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -221,7 +221,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
}
subtitle={
<div>
<span css={{ ...visuallyHidden }}>User: </span>
<span css={{ ...visuallyHidden }}>Owner: </span>
{workspace.owner_name}
</div>
}
Expand All@@ -230,6 +230,7 @@ export const WorkspacesTable: FC<WorkspacesTableProps> = ({
variant="icon"
src={workspace.template_icon}
fallback={workspace.name}
size="lg"
/>
}
/>
Expand Down
2 changes: 1 addition & 1 deletionsite/tailwind.config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@ module.exports = {
},
fontSize: {
"2xs": ["0.625rem", "0.875rem"],
xs: ["0.75rem", "1.125rem"],
xs: ["0.75rem", "1rem"],
sm: ["0.875rem", "1.5rem"],
"3xl": ["2rem", "2.5rem"],
},
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp