Improve list add

This commit is contained in:
Roman Cervantes 2019-10-16 12:55:22 -07:00
parent 968dc0a4f8
commit d5ccfc4d91

View file

@ -1,5 +1,5 @@
<template lang="html">
<modal :title="title" ref="listAddModal" @open="open">
<modal confirm :title="title" ref="listAddModal" padded @open="open">
<button
class="small primary add-list-button"
:title="$t('list.add')"
@ -7,7 +7,7 @@
<i class="fas fa-plus" />
</button>
<form class="list-add" @submit.prevent="addList" slot="content">
<form @submit.prevent="addList" slot="content">
<input
v-model.trim="listName"
type="text"
@ -16,7 +16,6 @@
:placeholder="$t('list.placeholder')"
/>
<footer>
<button
class="primary"
type="submit"
@ -26,7 +25,6 @@
</button>
<small v-if="isDuplicate">{{ $t('list.duplicateWarning') }}</small>
</footer>
</form>
</modal>
</template>
@ -122,19 +120,8 @@ export default {
margin-right: $gp;
}
.list-add {
padding: 0 $gp $gp;
margin-right: $gp;
}
small {
color: var(--note-color);
}
footer {
margin-top: $gp;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--warning-color);
margin: 0 $gp;
}
</style>