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

Commitfc7a7df

Browse files
fix: adjust template row alignment when missing description (#16056)
Fix#16046**Before:**![image](https://github.com/user-attachments/assets/90640f04-4d41-463e-b81d-92b78cba10f5)**After:**<img width="1336" alt="Screenshot 2025-01-07 at 09 34 28"src="https://github.com/user-attachments/assets/33f0f9b1-0594-41c3-93c3-3225f791e2cf"/>**Bonus:**Adjust the skeleton to match the new design.
1 parentb98a1ad commitfc7a7df

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,10 @@ export const AvatarData: FC<AvatarDataProps> = ({
3737
}
3838

3939
return(
40-
<Stack
41-
spacing={1}
42-
direction="row"
43-
css={{
44-
minHeight:40,// Make it predictable for the skeleton
45-
width:"100%",
46-
lineHeight:"150%",
47-
}}
48-
>
40+
<Stackspacing={1}direction="row"className="w-full">
4941
{avatar}
5042

51-
<Stack
52-
spacing={0}
53-
css={{
54-
width:"100%",
55-
}}
56-
>
43+
<Stackspacing={0}className="w-full">
5744
<span
5845
css={{
5946
color:theme.palette.text.primary,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
importtype{Meta,StoryObj}from"@storybook/react";
2+
import{AvatarDataSkeleton}from"./AvatarDataSkeleton";
3+
4+
constmeta:Meta<typeofAvatarDataSkeleton>={
5+
title:"components/AvatarDataSkeleton",
6+
component:AvatarDataSkeleton,
7+
};
8+
9+
exportdefaultmeta;
10+
typeStory=StoryObj<typeofAvatarDataSkeleton>;
11+
12+
exportconstDefault:Story={};

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

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

55
exportconstAvatarDataSkeleton:FC=()=>{
66
return(
7-
<Stackspacing={1.5}direction="row"alignItems="center">
8-
<Skeletonvariant="circular"width={36}height={36}/>
7+
<Stackspacing={1}direction="row"className="w-full">
8+
<Skeletonvariant="rectangular"className="size-6 rounded-sm"/>
99

1010
<Stackspacing={0}>
1111
<Skeletonvariant="text"width={100}/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp