Skip to content

Commit

Permalink
fix: wrap checkbox label + remove bad margin
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Oct 29, 2024
1 parent f86098b commit f0c6629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/common/ui/setting-check.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ onBeforeUnmount(revoke);
display: inline-flex;
flex-wrap: wrap;
white-space: pre-wrap; /* preserving spaces in html */
> :nth-child(2) {
flex: 1 1 min-content; /* wrapping inside the label so it stays in the same row as [x] */
}
}
</style>
2 changes: 1 addition & 1 deletion src/common/ui/settings-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<div class="ml-2c flex flex-col">
<!-- ml-2c indents children after the first one for visual grouping -->
<setting-check name="editorWindow" class="mr-2" ref="$EW">
<setting-check name="editorWindow" ref="$EW">
<tooltip :content="EDITOR_WINDOW_HINT" :disabled="!EDITOR_WINDOW_HINT">
<span v-text="i18n('optionEditorWindow')"/>
</tooltip>
Expand Down

0 comments on commit f0c6629

Please sign in to comment.