aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-03 16:39:12 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-03 16:39:12 +1000
commit89fc34f82956f2410ee7f1d90e03945e10805dda (patch)
tree41b615f4414cf47e1da70497e5bf8173faf3f7b8 /src/lib.ts
parentb8694f56d687307c64ba6775f9f0d4c064a2669a (diff)
Add styling, mainly for TileInfoModal and Settings
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts4
1 files changed, 2 insertions, 2 deletions
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