Handle overflowing app titles and center main navigation relative to actual screen center

This commit is contained in:
Andrew Kingston 2022-05-10 18:35:00 +01:00
parent f1777c23f7
commit 0f84d35c32
1 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,7 @@
import { API } from "api" import { API } from "api"
import { isActive, goto, layout, redirect } from "@roxi/routify" import { isActive, goto, layout, redirect } from "@roxi/routify"
import { capitalise } from "helpers" import { capitalise } from "helpers"
import { onMount, onDestroy } from "svelte" import { onMount } from "svelte"
export let application export let application
@ -131,10 +131,10 @@
flex: 0 0 60px; flex: 0 0 60px;
background: var(--background); background: var(--background);
padding: 0 var(--spacing-xl); padding: 0 var(--spacing-xl);
display: flex; display: grid;
grid-template-columns: 1fr auto 1fr;
flex-direction: row; flex-direction: row;
box-sizing: border-box; box-sizing: border-box;
justify-content: space-between;
align-items: stretch; align-items: stretch;
border-bottom: var(--border-light); border-bottom: var(--border-light);
} }
@ -147,7 +147,11 @@
gap: var(--spacing-xl); gap: var(--spacing-xl);
} }
.topleftnav :global(.spectrum-Heading) { .topleftnav :global(.spectrum-Heading) {
flex: 1 1 auto;
width: 0;
font-weight: 600; font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
} }
.topcenternav { .topcenternav {