diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-03 16:39:12 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-03 16:39:12 +1000 |
| commit | 89fc34f82956f2410ee7f1d90e03945e10805dda (patch) | |
| tree | 41b615f4414cf47e1da70497e5bf8173faf3f7b8 /src/lib.ts | |
| parent | b8694f56d687307c64ba6775f9f0d4c064a2669a (diff) | |
Add styling, mainly for TileInfoModal and Settings
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
