1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-15 12:54:06 +00:00

Reamed btn-sm class to button-small

This commit is contained in:
2023-05-30 19:40:12 +02:00
parent 313153d01d
commit 6513eab608
7 changed files with 15 additions and 15 deletions

View File

@ -112,7 +112,7 @@
<button
on:click={() => setValueToDate(day)}
type="button"
class="btn-sm"
class="button-small"
class:active={isSameDay(value, day)}
class:notinmonth={day.getMonth() !== month}
>{day.getDate()}</button>

View File

@ -94,22 +94,22 @@
<div class="actions">
{#if type === 'objectid'}
{#if objectIdInput?.disabled}
<button class="btn-sm" type="button" title="Edit object id" on:click={editObjectId}>
<button class="button-small" type="button" title="Edit object id" on:click={editObjectId}>
<Icon name="edit" />
</button>
{/if}
<button class="btn-sm" type="button" title="Generate random object id" on:click={generateObjectId}>
<button class="button-small" type="button" title="Generate random object id" on:click={generateObjectId}>
<Icon name="reload" />
</button>
{:else if type === 'date'}
<button class="btn-sm" type="button" title="Edit date" on:click={() => showDatepicker = true}>
<button class="button-small" type="button" title="Edit date" on:click={() => showDatepicker = true}>
<Icon name="edit" />
</button>
<button class="btn-sm" type="button" title="Set date to now" on:click={() => value = new Date()}>
<button class="button-small" type="button" title="Set date to now" on:click={() => value = new Date()}>
<Icon name="o" />
</button>
{/if}
<button class="btn-sm" type="button" title="Reset field to default value" on:click={() => value = undefined}>
<button class="button-small" type="button" title="Reset field to default value" on:click={() => value = undefined}>
<Icon name="trash" />
</button>
</div>

View File

@ -173,7 +173,7 @@
{#if canRemoveItems}
<td class="has-button">
<button class="btn-sm" type="button" on:click|stopPropagation={() => removeItem(index, item[key])} on:dblclick|stopPropagation>
<button class="button-small" type="button" on:click|stopPropagation={() => removeItem(index, item[key])} on:dblclick|stopPropagation>
<Icon name="x" />
</button>
</td>

View File

@ -23,7 +23,7 @@
{tab.title}
</button>
{#if tab.closable}
<button class="btn-sm" on:click={() => dispatch('closeTab', tab.key)}>
<button class="button-small" on:click={() => dispatch('closeTab', tab.key)}>
<Icon name="x" />
</button>
{/if}
@ -89,7 +89,7 @@
cursor: not-allowed;
}
.btn-sm {
.button-small {
position: absolute;
right: 7px;
top: 7px;