1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +12:00

Remove padding on top nav bar so that things are properly centered

This commit is contained in:
Andrew Kingston 2020-10-07 12:00:15 +01:00
parent b9c9408c7c
commit a24ce26953
3 changed files with 7 additions and 8 deletions

View file

@ -25,8 +25,10 @@
export let showConfirmButton = true export let showConfirmButton = true
export let onConfirm = () => {} export let onConfirm = () => {}
export let visible = false export let visible = false
export let loading = false
let loading = false let confirmLoading = false
$: disabled = loading || confirmLoading || $$restProps.disabled
function show() { function show() {
if (visible) { if (visible) {
@ -89,7 +91,7 @@
<Button <Button
primary primary
{...$$restProps} {...$$restProps}
disabled={$$restProps.disabled || loading} {disabled}
on:click={confirm}> on:click={confirm}>
{confirmText} {confirmText}
</Button> </Button>

View file

@ -20,8 +20,7 @@
.topnavitemright { .topnavitemright {
cursor: pointer; cursor: pointer;
color: var(--grey-7); color: var(--grey-7);
margin: 0px 20px 0px 0px; margin: 0 20px 0 0;
padding-top: 4px;
font-weight: 500; font-weight: 500;
font-size: 1rem; font-size: 1rem;
height: 100%; height: 100%;

View file

@ -127,8 +127,7 @@
.topnavitem { .topnavitem {
cursor: pointer; cursor: pointer;
color: var(--grey-5); color: var(--grey-5);
margin: 0px 00px 0px 20px; margin: 0 0 0 20px;
padding-top: 4px;
font-weight: 500; font-weight: 500;
font-size: var(--font-size-m); font-size: var(--font-size-m);
height: 100%; height: 100%;
@ -149,8 +148,7 @@
.topnavitemright { .topnavitemright {
cursor: pointer; cursor: pointer;
color: var(--grey-7); color: var(--grey-7);
margin: 0px 20px 0px 0px; margin: 0 20px 0 0;
padding-top: 4px;
font-weight: 500; font-weight: 500;
font-size: 1rem; font-size: 1rem;
height: 100%; height: 100%;