From a6cfd7ff9b4025353f0ff7709ac24446d2043326 Mon Sep 17 00:00:00 2001 From: Marc Sabat Date: Tue, 16 Apr 2024 16:20:11 +0200 Subject: [PATCH 1/6] fixed radio button spacing with css --- src/assets/main.css | 18 ++++++++++++++++-- src/components/ScaleControls.vue | 6 +++--- src/views/AnalysisView.vue | 10 +++++----- src/views/MidiView.vue | 12 +++++------- src/views/PreferencesView.vue | 14 +++++++------- src/views/SynthView.vue | 17 ++++++++--------- 6 files changed, 44 insertions(+), 33 deletions(-) diff --git a/src/assets/main.css b/src/assets/main.css index 7a95f60d..536ae780 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -36,6 +36,16 @@ code { border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); } +label.right-of-checkbox{ + margin-left: 0.1rem; + text-align: left; + vertical-align: baseline; +} +label.right-of-radio{ + margin-left: 0.25rem; + text-align: left; + vertical-align: baseline; +} /* UI elements */ input[type='text'], @@ -50,6 +60,10 @@ select { width: 6rem; line-height: var(--base-line-height); } +input[type='radio'] + { + vertical-align: -0.05rem +} optgroup { font-weight: bold; } @@ -138,13 +152,13 @@ ul.btn-group { flex-grow: 0.25 !important; } .control.checkbox-container { - flex-flow: unset; + flex-flow: unset;; } .control.checkbox-container label { font-weight: normal; } .control.radio-group { - gap: 0.15rem 1rem; + gap: 0rem 1rem; } .control.radio-group span label { font-weight: unset; diff --git a/src/components/ScaleControls.vue b/src/components/ScaleControls.vue index a5d38ac4..de5c8d6e 100644 --- a/src/components/ScaleControls.vue +++ b/src/components/ScaleControls.vue @@ -87,7 +87,7 @@ defineExpose({ focus, clearPaletteInfo }) v-model="scale.autoColors" @input="updateScale" /> - + @@ -98,7 +98,7 @@ defineExpose({ focus, clearPaletteInfo }) v-model="scale.autoColors" @input="updateScale" /> - + @@ -109,7 +109,7 @@ defineExpose({ focus, clearPaletteInfo }) v-model="scale.autoColors" @input="updateScale" /> - + diff --git a/src/views/AnalysisView.vue b/src/views/AnalysisView.vue index 69023288..c3934e5b 100644 --- a/src/views/AnalysisView.vue +++ b/src/views/AnalysisView.vue @@ -230,17 +230,17 @@ function highlight(y?: number, x?: number) { - + - + - + @@ -383,11 +383,11 @@ function highlight(y?: number, x?: number) { - + - + diff --git a/src/views/MidiView.vue b/src/views/MidiView.vue index 9e15dabe..eaff36aa 100644 --- a/src/views/MidiView.vue +++ b/src/views/MidiView.vue @@ -167,9 +167,7 @@ onUnmounted(() => {
- + { - + - + - + - +
diff --git a/src/views/PreferencesView.vue b/src/views/PreferencesView.vue index 953d467a..2295987c 100644 --- a/src/views/PreferencesView.vue +++ b/src/views/PreferencesView.vue @@ -31,14 +31,14 @@ const scale = useScaleStore()
- +

Advanced

- +
@@ -53,11 +53,11 @@ const scale = useScaleStore()
- + - +

Accidentals

@@ -69,7 +69,7 @@ const scale = useScaleStore() value="double" v-model="scale.accidentalPreference" /> - + - + - +
diff --git a/src/views/SynthView.vue b/src/views/SynthView.vue index ae78c8f5..79030248 100644 --- a/src/views/SynthView.vue +++ b/src/views/SynthView.vue @@ -260,17 +260,17 @@ onUnmounted(() => { value="oscillator" v-model="audio.synthType" /> - + - + - + diff --git a/src/components/modals/modification/MergeOffsets.vue b/src/components/modals/modification/MergeOffsets.vue index adc6a8b9..0c2beb6f 100644 --- a/src/components/modals/modification/MergeOffsets.vue +++ b/src/components/modals/modification/MergeOffsets.vue @@ -50,17 +50,17 @@ function modify(expand = true) { - + - + - + diff --git a/src/components/modals/modification/RandomVariance.vue b/src/components/modals/modification/RandomVariance.vue index 20f2587a..456f7e3f 100644 --- a/src/components/modals/modification/RandomVariance.vue +++ b/src/components/modals/modification/RandomVariance.vue @@ -47,7 +47,7 @@ function modify(expand = true) {
- +
diff --git a/src/components/modals/modification/TemperScale.vue b/src/components/modals/modification/TemperScale.vue index 5de3c4e9..3457f814 100644 --- a/src/components/modals/modification/TemperScale.vue +++ b/src/components/modals/modification/TemperScale.vue @@ -94,7 +94,7 @@ function modify(expand = true) { @focus="temper.error = ''" v-model="temper.method" /> - + - + @@ -115,7 +115,7 @@ function modify(expand = true) { @focus="temper.error = ''" v-model="temper.method" /> - + @@ -196,7 +196,7 @@ function modify(expand = true) { @focus="temper.error = ''" v-model="temper.tempering" /> - + @@ -207,7 +207,7 @@ function modify(expand = true) { @focus="temper.error = ''" v-model="temper.tempering" /> - + @@ -219,7 +219,7 @@ function modify(expand = true) { :disabled="!temper.constraintsAvailable" v-model="temper.tempering" /> - + diff --git a/src/views/AnalysisView.vue b/src/views/AnalysisView.vue index c3934e5b..9cda881d 100644 --- a/src/views/AnalysisView.vue +++ b/src/views/AnalysisView.vue @@ -230,17 +230,17 @@ function highlight(y?: number, x?: number) { - + - + - + @@ -252,12 +252,12 @@ function highlight(y?: number, x?: number) { - + - +
@@ -276,7 +276,7 @@ function highlight(y?: number, x?: number) { type="checkbox" v-model="state.calculateConstantStructureViolations" /> - +
@@ -284,11 +284,11 @@ function highlight(y?: number, x?: number) {
- +
- +
@@ -383,11 +383,11 @@ function highlight(y?: number, x?: number) { - + - +
diff --git a/src/views/LatticeView.vue b/src/views/LatticeView.vue index f3dba428..428df404 100644 --- a/src/views/LatticeView.vue +++ b/src/views/LatticeView.vue @@ -123,11 +123,11 @@ watch(etPreset, (newValue) => { - + - +