Skip to content

Commit f7fb57b

Browse files
committed
Fixed skeleton loader size mismatch on Admin > Manage Kudos
1 parent 8e227d3 commit f7fb57b

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
.public-kudos {
2+
width: 100%;
3+
}
4+
15
.public-kudos .kudos-title {
26
display: flex;
37
justify-content: space-between;
48
align-items: center;
59
gap: 1rem;
6-
}
10+
}
11+
12+
.kudos-list {
13+
width: 100%;
14+
}
15+
16+

web-ui/src/components/kudos/PublicKudos.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const PublicKudos = () => {
6262
{kudosLoading ? (
6363
<div className="kudos-list">
6464
{Array.from({ length: 5 }).map((_, index) => (
65-
<SkeletonLoader width={400} key={index} type="kudos" />
65+
<SkeletonLoader width="100%" key={index} type="kudos" />
6666
))}
6767
</div>
6868
) : !kudosLoading && kudos?.length > 0 ? (

web-ui/src/components/skeleton_loader/SkeletonLoader.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const classes = {
1111

1212
const StyledCard = styled(Card)(() => ({
1313
[`&.${classes.card}`]: {
14-
width: '340px'
14+
width: '100%'
1515
}
1616
}));
1717

@@ -185,7 +185,7 @@ export default function SkeletonLoader({ type, delay = 300 }) {
185185
);
186186
} else if (type === 'kudos') {
187187
return (
188-
<Box width={400}>
188+
<Box width="100%">
189189
<StyledCard padding={0}>
190190
<CardContent style={{ paddingBottom: 0 }}>
191191
<Box

0 commit comments

Comments
 (0)