UI improvements

This commit is contained in:
rxdn 2022-08-02 15:22:17 +01:00
parent dae9189052
commit d50c1971e5

View File

@ -31,7 +31,7 @@
</table>
</div>
<div slot="footer">
<Button icon="fas fa-plus" on:click={() => tagCreateModal = true}>Create Tag</Button>
<Button icon="fas fa-plus" on:click={openCreateModal}>Create Tag</Button>
</div>
</Card>
</div>
@ -58,10 +58,17 @@
let tagCreateModal = false;
let tagEditModal = false;
function openCreateModal(id) {
tagCreateModal = true;
window.scrollTo({ top: 0, behavior: 'smooth' });
}
function openEditModal(id) {
editId = id;
editData = tags[id];
tagEditModal = true;
window.scrollTo({ top: 0, behavior: 'smooth' });
}
function cancelEdit() {
@ -186,6 +193,7 @@
flex-direction: column;
width: 64%;
height: 100%;
padding-bottom: 4%;
}
.body-wrapper {