Skip to content

Commit

Permalink
Improve the layout of the "Word wrapping" checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
adoriandoran committed Oct 29, 2024
1 parent 60426ea commit 2459bbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ const TPL = `
<select class="theme-select form-select"></select>
</div>
<div class="col-6">
<label>${t("code_block.word_wrapping")}</label>
<div class="form-check">
<div class="col-6 side-checkbox">
<label class="form-check">
<input type="checkbox" class="word-wrap form-check-input" />
</div>
${t("code_block.word_wrapping")}
</label>
</div>
</div>
Expand Down
10 changes: 9 additions & 1 deletion src/public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,14 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
margin-right: 1em;
}

.side-checkbox {
display: flex;
align-items: end;
padding-top: .375rem;
padding-bottom: .375rem;
line-height: 1.5;
}

.ck-content .todo-list .todo-list__label > input:before {
border: 1px solid var(--muted-text-color) !important;
}
Expand Down Expand Up @@ -1220,4 +1228,4 @@ textarea {

.jump-to-note-results .aa-suggestions {
padding: 1rem;
}
}

0 comments on commit 2459bbf

Please sign in to comment.