mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-22 14:37:52 +01:00
perf: improve button styles of notes
This commit is contained in:
parent
9cda38e9d1
commit
48cfa67889
@ -47,65 +47,50 @@
|
|||||||
<div class="tile-history-buttons">
|
<div class="tile-history-buttons">
|
||||||
<button
|
<button
|
||||||
v-if="note.type === 'todo' && !note.isArchived"
|
v-if="note.type === 'todo' && !note.isArchived"
|
||||||
class="btn btn-link pl-1"
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
|
:data-tooltip="t('general.archive')"
|
||||||
@click.stop="$emit('archive-note', note.uid)"
|
@click.stop="$emit('archive-note', note.uid)"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon icon-name="mdiCheck" :size="22" />
|
||||||
icon-name="mdiCheck"
|
|
||||||
class="pr-1"
|
|
||||||
:size="22"
|
|
||||||
/> {{ t('general.archive') }}
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="note.type === 'todo' && note.isArchived"
|
v-if="note.type === 'todo' && note.isArchived"
|
||||||
class="btn btn-link pl-1"
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
|
:data-tooltip="t('general.undo')"
|
||||||
@click.stop="$emit('restore-note', note.uid)"
|
@click.stop="$emit('restore-note', note.uid)"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon icon-name="mdiRestore" :size="22" />
|
||||||
icon-name="mdiRestore"
|
|
||||||
class="pr-1"
|
|
||||||
:size="22"
|
|
||||||
/> {{ t('general.undo') }}
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="note.type === 'query'"
|
v-if="note.type === 'query'"
|
||||||
class="btn btn-link pl-1"
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
|
:data-tooltip="t('general.select')"
|
||||||
@click.stop="$emit('select-query', note.note)"
|
@click.stop="$emit('select-query', note.note)"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon icon-name="mdiOpenInApp" :size="22" />
|
||||||
icon-name="mdiOpenInApp"
|
|
||||||
class="pr-1"
|
|
||||||
:size="22"
|
|
||||||
/> {{ t('general.select') }}
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="note.type === 'query'"
|
v-if="note.type === 'query'"
|
||||||
class="btn btn-link pl-1"
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
|
:data-tooltip="t('general.copy')"
|
||||||
@click.stop="copyText(note.note)"
|
@click.stop="copyText(note.note)"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon icon-name="mdiContentCopy" :size="18" />
|
||||||
icon-name="mdiContentCopy"
|
|
||||||
class="pr-1"
|
|
||||||
:size="22"
|
|
||||||
/> {{ t('general.copy') }}
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if=" !note.isArchived"
|
v-if=" !note.isArchived"
|
||||||
class="btn btn-link pl-1"
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
|
:data-tooltip="t('general.edit')"
|
||||||
@click.stop="$emit('edit-note')"
|
@click.stop="$emit('edit-note')"
|
||||||
>
|
>
|
||||||
<BaseIcon
|
<BaseIcon icon-name="mdiPencil" :size="22" />
|
||||||
icon-name="mdiPencil"
|
|
||||||
class="pr-1"
|
|
||||||
:size="22"
|
|
||||||
/> {{ t('general.edit') }}
|
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-link pl-1" @click.stop="$emit('delete-note', note.uid)">
|
<button
|
||||||
<BaseIcon
|
class="btn btn-dark tooltip tooltip-left"
|
||||||
icon-name="mdiDeleteForever"
|
:data-tooltip="t('general.delete')"
|
||||||
class="pr-1"
|
@click.stop="$emit('delete-note', note.uid)"
|
||||||
:size="22"
|
>
|
||||||
/> {{ t('general.delete') }}
|
<BaseIcon icon-name="mdiDeleteForever" :size="22" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -278,11 +263,14 @@ const highlightWord = (string: string) => {
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
height: 1rem;
|
|
||||||
line-height: 1rem;
|
line-height: 1rem;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 0;
|
||||||
|
height: 24px;
|
||||||
|
width: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user