Some style changes
Add input mode to number fields
This commit is contained in:
parent
d149e40e99
commit
325c5b0fe1
4 changed files with 10 additions and 10 deletions
|
@ -56,8 +56,8 @@ h2 {
|
|||
|
||||
.close {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.licenses {
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
<div class="dialog">
|
||||
<div class="dialog-content">
|
||||
<label>Name<input type="text" bind:value={newCounter.title} use:focus/></label>
|
||||
<label>Initial Value<input type="number" bind:value={newCounter.initialValue} /></label>
|
||||
<label>Target<input type="number" bind:value={newCounter.max} /></label>
|
||||
<label>Initial Value<input type="number" inputmode="decimal" bind:value={newCounter.initialValue} /></label>
|
||||
<label>Target<input type="number" inputmode="decimal" bind:value={newCounter.max} /></label>
|
||||
<label>Save history<input type="checkbox" bind:checked={newCounter.saveHistory} /></label>
|
||||
<button on:click={ () => { showAddDialog = false; } }>Cancel</button>
|
||||
<button class="ok" on:click={ add }>OK</button>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div class="dialog">
|
||||
<div class="dialog-content">
|
||||
<h1>{ showIncrement ? "Add" : "Set" }</h1>
|
||||
<input class="dialog-value" type="number" bind:value={ dialogValue } use:focus />
|
||||
<input class="dialog-value" type="number" inputmode="decimal" bind:value={ dialogValue } use:focus />
|
||||
<button on:click={ dialogCancel }>Cancel</button>
|
||||
<button class="ok" on:click={ dialogDone }>OK</button>
|
||||
</div>
|
||||
|
@ -28,8 +28,8 @@
|
|||
<div class="dialog">
|
||||
<div class="dialog-content">
|
||||
<label>Name<input type="text" bind:value={editingCounter.title} use:focus/></label>
|
||||
<label>Initial Value<input type="number" bind:value={editingCounter.initialValue} /></label>
|
||||
<label>Target<input type="number" bind:value={editingCounter.max} /></label>
|
||||
<label>Initial Value<input type="number" inputmode="decimal" bind:value={editingCounter.initialValue} /></label>
|
||||
<label>Target<input type="number" inputmode="decimal" bind:value={editingCounter.max} /></label>
|
||||
<label>Save history<input type="checkbox" bind:checked={editingCounter.saveHistory} /></label>
|
||||
<button on:click={ () => { showEditDialog = false; } }>Cancel</button>
|
||||
<button class="ok" on:click={ finishEdit }>OK</button>
|
||||
|
|
|
@ -52,8 +52,8 @@ button {
|
|||
|
||||
color: var(--text-primary);
|
||||
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue