Skip to content

Commit c2cf80b

Browse files
Merge pull request #168 from OpenDTU-App/fix-statuswidget
2 parents a0fddf7 + fd6ff8b commit c2cf80b

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/components/StatusWidget.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,25 @@ const StatusWidget: FC<StatusWidgetProps> = ({
5252
{children}
5353
</Box>
5454
) : (
55-
<SkeletonPlaceholder
56-
backgroundColor={theme.colors.elevation.level1}
57-
highlightColor={theme.colors.elevation.level2}
58-
borderRadius={16}
59-
speed={1000}
60-
>
61-
<View
62-
style={{
63-
flexDirection: 'row',
64-
alignItems: 'center',
65-
width: '100%',
66-
maxWidth,
67-
}}
55+
<View style={{ borderRadius: 16, overflow: 'hidden' }}>
56+
<SkeletonPlaceholder
57+
backgroundColor={theme.colors.elevation.level1}
58+
highlightColor={theme.colors.elevation.level2}
59+
borderRadius={16}
60+
speed={1000}
6861
>
69-
<View style={{ width: '100%', height: 80 }} />
70-
</View>
71-
</SkeletonPlaceholder>
62+
<View
63+
style={{
64+
flexDirection: 'row',
65+
alignItems: 'center',
66+
width: '100%',
67+
maxWidth,
68+
}}
69+
>
70+
<View style={{ width: '100%', height: 80 }} />
71+
</View>
72+
</SkeletonPlaceholder>
73+
</View>
7274
)}
7375
</StyledSurface>
7476
);

0 commit comments

Comments
 (0)