Skip to content

Commit b1be92e

Browse files
committed
fix(org): stop the phone settings title painting its own strip in the top bar
The surface carrying the title into the host's bar painted the canvas, which the bar's own surface shows through everywhere else.
1 parent 5b2bbf5 commit b1be92e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

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

54+
/* A part carried into the host's own bar: the bar paints, so the surface around it must not. */
55+
[data-platform-ui][data-canvas]:has(> [data-host-chrome]) {
56+
background: transparent;
57+
}
58+
5459
[data-platform-ui][data-theme="dark"] {
5560
color-scheme: dark;
5661
}

‎apps/sim/platform/embedded/app/(shell)/settings/_components/settings-screen/settings-screen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function SettingsBreadcrumb({ title }: SettingsBreadcrumbProps) {
2424
/** The section's name, for the phone top bar that replaces the breadcrumb. */
2525
export function SettingsMobileTitle({ title }: SettingsBreadcrumbProps) {
2626
return (
27-
<span className={styles.mobileTitle} data-type='T057'>
27+
<span className={styles.mobileTitle} data-host-chrome data-type='T057'>
2828
{title}
2929
</span>
3030
)

0 commit comments

Comments
 (0)