[ui] show edit mode

feat/vaults
Tomáš Mládek 2022-02-09 23:35:17 +01:00
parent 64d15f7231
commit a9e60d4722
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 10 additions and 2 deletions

View File

@ -17,9 +17,13 @@
}
</script>
<div class="view">
<div class="view" class:editable>
<header>
<IconButton name="pencil" on:click={() => (editable = !editable)} />
<IconButton
name="pencil"
on:click={() => (editable = !editable)}
active={editable}
/>
<IconButton name="bookmark" on:click={() => visit()} disabled={only} />
<IconButton
name="x-circle"
@ -44,6 +48,10 @@
border-radius: 0.5em;
padding: 1rem;
&.editable {
border-style: dashed;
}
header {
font-size: 20px;
position: relative;