feat: try typing field in chords section

resolves #68
fix: "No Results" not translated
This commit is contained in:
2023-12-18 18:42:08 +01:00
parent 98b451eec9
commit ed523628ff
3 changed files with 22 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ const de = {
DUPLICATE: "Akkord existiert bereits", DUPLICATE: "Akkord existiert bereits",
search: { search: {
PLACEHOLDER: "{0} Akkord{{|e}} durchsuchen", PLACEHOLDER: "{0} Akkord{{|e}} durchsuchen",
NO_RESULTS: "Keine Ergebnisse",
}, },
conflict: { conflict: {
TITLE: "Akkordkonflikt", TITLE: "Akkordkonflikt",
@@ -119,6 +120,7 @@ const de = {
CONFIRM: "Überschreiben", CONFIRM: "Überschreiben",
ABORT: "Überspringen", ABORT: "Überspringen",
}, },
TRY_TYPING: "Versuche hier zu tippen",
}, },
layout: { layout: {
TITLE: "Layout", TITLE: "Layout",

View File

@@ -107,6 +107,7 @@ const en = {
DUPLICATE: "Chord already exists", DUPLICATE: "Chord already exists",
search: { search: {
PLACEHOLDER: "Search {0} chord{{|s}}", PLACEHOLDER: "Search {0} chord{{|s}}",
NO_RESULTS: "No results",
}, },
conflict: { conflict: {
TITLE: "Chord conflict", TITLE: "Chord conflict",
@@ -115,6 +116,7 @@ const en = {
CONFIRM: "Overwrite", CONFIRM: "Overwrite",
ABORT: "Skip", ABORT: "Skip",
}, },
TRY_TYPING: "Try typing here",
}, },
layout: { layout: {
TITLE: "Layout", TITLE: "Layout",

View File

@@ -125,9 +125,10 @@
</tr> </tr>
{/each} {/each}
{:else} {:else}
<caption> No Results </caption> <caption>{$LL.configure.chords.search.NO_RESULTS()}</caption>
{/if} {/if}
</table> </table>
<textarea placeholder={$LL.configure.chords.TRY_TYPING()}></textarea>
</section> </section>
<style lang="scss"> <style lang="scss">
@@ -143,6 +144,20 @@
min-width: 8ch; min-width: 8ch;
} }
textarea {
transition: border-color 250ms ease;
background: none;
color: inherit;
border: 1px dashed var(--md-sys-color-surface-variant);
padding: 8px;
border-radius: 4px;
&:focus {
outline: none;
border-color: var(--md-sys-color-primary);
}
}
caption { caption {
margin-top: 156px; margin-top: 156px;
} }
@@ -175,6 +190,7 @@
section { section {
position: relative; position: relative;
display: flex;
overflow: hidden; overflow: hidden;
@@ -185,6 +201,7 @@
} }
table { table {
height: fit-content;
overflow: hidden; overflow: hidden;
min-width: min(90vw, 16.5cm); min-width: min(90vw, 16.5cm);
transition: all 1s ease; transition: all 1s ease;