Skip to content

Commit

Permalink
style: use monospace font on console input
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Jun 28, 2023
1 parent 7186927 commit 7f2bd38
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/settings/presets/PresetDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
hide-details="auto"
filled
spellcheck="false"
class="console-command"
/>
</app-setting>
</div>
Expand Down Expand Up @@ -123,3 +124,9 @@ export default class TemperaturePresetDialog extends Vue {
}
}
</script>

<style lang="scss" scoped>
.console-command {
font-family: monospace;
}
</style>
7 changes: 7 additions & 0 deletions src/components/widgets/console/ConsoleCommand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
dense
hide-details
spellcheck="false"
class="console-command"
@input="emitChange"
@keyup.enter.exact="emitSend(newValue)"
@keydown.enter.exact.prevent
Expand Down Expand Up @@ -133,3 +134,9 @@ export default class ConsoleCommand extends Vue {
}
}
</script>

<style lang="scss" scoped>
.console-command {
font-family: monospace;
}
</style>
6 changes: 5 additions & 1 deletion src/components/widgets/macros/MacroBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
dense
hide-details="auto"
spellcheck="false"
class=""
class="console-command"
:class="{ 'mb-3': (i < paramList.length - 1) }"
>
<template #append>
Expand Down Expand Up @@ -159,4 +159,8 @@ export default class MacroBtn extends Mixins(StateMixin) {
.macro-params > * {
flex: 1 1 40px;
}
.console-command :deep(.v-text-field__slot input) {
font-family: monospace;
}
</style>

0 comments on commit 7f2bd38

Please sign in to comment.