From 89fc34f82956f2410ee7f1d90e03945e10805dda Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 3 Jul 2022 16:39:12 +1000 Subject: Add styling, mainly for TileInfoModal and Settings --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index 73c4c03..8404725 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -118,7 +118,7 @@ export function getDefaultLytOpts(): LayoutOptions { let screenSz = getBreakpoint(); return { tileSpacing: screenSz == 'sm' ? 6 : 10, //px - headerSz: 22, // px + headerSz: screenSz == 'sm' ? 18 : 22, // px minTileSz: 50, // px maxTileSz: 200, // px // Layout-algorithm related @@ -157,7 +157,7 @@ export function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions { nonleafHeaderColor: bgColorDark, ancestryBarBgColor: bgColorLight, // Component sizing - ancestryBarBreadth: lytOpts.maxTileSz / 2 + lytOpts.tileSpacing*2, // px + ancestryBarBreadth: (screenSz == 'sm' ? 80 : 100) + lytOpts.tileSpacing*2, // px tutPaneSz: 180, // px scrollGap, // Timing related -- cgit v1.2.3