Skip to content

Commit 9a33e0b

Browse files
Feat: Arrange HR tiles horizontally (#1551)
* feat: arrange hr tiles horizontally Updates the dashboard layout to display the heart rate monitor tiles in a horizontal row instead of a vertical stack. This is achieved by applying a flexbox layout to the container of the HR tiles. The width of the tiles has also been adjusted to ensure they fit correctly with the new layout. * feat: arrange hr tiles horizontally Updates the dashboard layout to display the heart rate monitor tiles in a horizontal row instead of a vertical stack. This is achieved by applying a flexbox layout to the container of the HR tiles. The width of the tiles has also been adjusted to ensure they fit correctly with the new layout. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 74e4398 commit 9a33e0b

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

app/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ const Dashboard = () => {
9494
</Box>
9595

9696
<Box
97-
sx={{ flexGrow: 1, width: { xs: '100%', lg: 'calc(50% - 16px)' } }}
97+
sx={{
98+
flexGrow: 1,
99+
width: { xs: '100%', lg: 'calc(50% - 16px)' },
100+
display: 'flex',
101+
flexWrap: 'wrap',
102+
gap: 2,
103+
}}
98104
>
99105
<ErrorBoundary fallback={<ErrorFallback />}>
100106
<HrmConnectionPanel />

components/HrmConnectionPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const HrmConnectionPanel = () => {
125125
sx={{
126126
width: {
127127
xs: '100%',
128-
sm: 'calc(50% - 12px)',
128+
sm: 'calc(50% - 8px)', // Adjusted for 16px gap (gap: 2)
129129
},
130130
}}
131131
>
12 Bytes
Loading

0 commit comments

Comments
 (0)