mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
fix: light mode skeleton style
This commit is contained in:
1 parent
7b650bf39b
commit
9bcaff9fd3
5 files changed
+48
-28
No files matched your search
@@ -35,13 +35,23 @@
|
||||
}
|
||||
|
||||
.name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
.skeleton {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
|
||||
.text {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&[data-skeleton="true"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.skeleton {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,10 +50,12 @@ export function TankCard(props: PropsWithSkeleton<TankCardProps>) {
|
||||
{props.skeleton && <Skeleton className={styles.icon} />}
|
||||
</div>
|
||||
|
||||
<Text className={styles.name}>
|
||||
{props.skeleton && <InlineSkeleton className={styles.skeleton} />}
|
||||
{!props.skeleton && gameStrings![tank!.tank!.name!.value]}
|
||||
</Text>
|
||||
<div className={styles.name}>
|
||||
<Text className={styles.text} data-skeleton={props.skeleton}>
|
||||
{props.skeleton && <InlineSkeleton className={styles.skeleton} />}
|
||||
{!props.skeleton && gameStrings![tank!.tank!.name!.value]}
|
||||
</Text>
|
||||
</div>
|
||||
</LinkI18n>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user