diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-06 20:54:01 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-07 13:07:50 +1000 |
| commit | 11caeefa4a3de21a20e66795f0ed06b0df692234 (patch) | |
| tree | a17686d6f22a2a1494a299951720785f443ffcb8 /src/lib.ts | |
| parent | 214bf396b7a946dcfc69dcfd768d3a5b21e0f4da (diff) | |
Add somewhat-dynamic font-sizes in headers
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 : 9, //px - headerSz: screenSz == 'sm' ? 18 : 22, // px + headerSz: 22, // px minTileSz: 50, // px maxTileSz: 200, // px // Layout-algorithm related @@ -127,7 +127,7 @@ export function getDefaultLytOpts(): LayoutOptions { rectSensitivity: 0.9, // Between 0 and 1 sweepMode: 'left', // 'left' | 'top' | 'shorter' | 'auto' sweptNodesPrio: 'sqrt', // 'linear' | 'sqrt' | 'pow-2/3' - sweepToParent: 'fallback', // 'none' | 'prefer' | 'fallback' + sweepToParent: screenSz == 'sm' ? 'prefer' : 'fallback', // 'none' | 'prefer' | 'fallback' }; } export function getDefaultUiOpts(lytOpts: LayoutOptions): UiOptions { |
