Skip to content

Commit 6d091cc

Browse files
committed
fix(org): drop the desktop toolbar's offset from a phone page's first row
Below 48rem there is no sidebar toolbar to line up with, so pages sat 80px under the bar. The zone already does this through its page opener.
1 parent 8665901 commit 6d091cc

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎apps/sim/platform/design-system/styles/embedded.css‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
background: var(--ui-canvas);
5252
}
5353

54+
/* A phone has no sidebar toolbar for a page's first row to line up with, only the bar above it. */
55+
@media (max-width: 48rem) {
56+
[data-platform-ui] {
57+
--shell-home-row-start: var(--ui-product-section-gap);
58+
}
59+
}
60+
5461
[data-platform-ui][data-theme="dark"] {
5562
color-scheme: dark;
5663
}

‎apps/sim/platform/embedded/app/(shell)/home/_components/home-dashboard/home-dashboard.module.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
margin-inline: auto;
1818
padding-block: var(--design-spacing-64) var(--design-spacing-24);
1919
}
20+
@media (max-width: 48rem) {
21+
.dashboard {
22+
padding-block-start: var(--design-spacing-24);
23+
}
24+
}
2025
/* Customize Home's menu opens over the composer, whose own stacking stays within its row. */
2126
.dashboard > :first-child {
2227
position: relative;

0 commit comments

Comments
 (0)