Remove padding on top nav bar so that things are properly centered
This commit is contained in:
parent
4220da27ef
commit
6170921d45
|
@ -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>
|
||||||
|
|
|
@ -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%;
|
||||||
|
|
|
@ -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%;
|
||||||
|
|
Loading…
Reference in New Issue