` pattern) so no page can forget it, and rendered from
* `accountAccess.active`, which the server resolves: the banner appears exactly
* when the server says the session is inside a record, never on a client guess.
@@ -54,25 +65,30 @@ export function SharedRecordBanner() {
role="status"
data-slot="shared-record-banner"
data-account-id={active.accountId}
- className="bg-warning/15 border-warning/40 flex flex-wrap items-center justify-center gap-x-3 gap-y-1 border-b px-3 py-2 text-xs"
+ className="bg-warning/15 border-warning/40 flex items-start gap-3 border-b px-3 py-2 text-xs sm:items-center"
>
-
-
- {t("recordSharing.banner.viewing", { name })}
-
- {/* Resolved server-side. `canWrite` is false for every grant in v1, and
- the day it is not, this line stops claiming otherwise on its own. */}
- {!active.canWrite && (
-
- {t("recordSharing.banner.readOnly")}
-
- )}
+
+
+
+ {t("recordSharing.banner.viewing", { name })}
+ {" "}
+ {/* Resolved server-side. `canWrite` is false for every grant in v1, and
+ the day it is not, this line stops claiming otherwise on its own. */}
+ {!active.canWrite && (
+
+ {t("recordSharing.banner.readOnly")}
+
+ )}
+