mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-07 08:54:42 +00:00
* feat(app): modernize compact headers and sidebar affordances Use a shared island header with quick tab creation and keep sheet footers inside their visible layout. Opt sidebar rows into touch sizing without changing global appearance settings. * test(app): match darker light-theme workspace selection * test(app): align plugin journeys with compact header
15 lines
539 B
TypeScript
15 lines
539 B
TypeScript
import { createContext, useContext } from "react";
|
|
import { isNative } from "@/constants/platform";
|
|
|
|
/** The native inverted viewport reserves visual-top clearance; web stays in flow. */
|
|
export const supportsStreamTopOverlay = isNative;
|
|
|
|
const StreamTopOverlayContext = createContext(0);
|
|
|
|
/** Visual-top clearance supplied by the containing layout, in points. */
|
|
export const StreamTopOverlayProvider = StreamTopOverlayContext.Provider;
|
|
|
|
export function useStreamTopOverlayInset(): number {
|
|
return useContext(StreamTopOverlayContext);
|
|
}
|