mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 04:12:58 +08:00
feat(rtl): adjust padding for read-only text
This commit is contained in:
parent
51813099b3
commit
4a75f9f48b
@ -32,7 +32,7 @@ const TPL = `
|
||||
body.heading-style-underline .note-detail-readonly-text h6 { border-bottom: 1px solid var(--main-border-color); }
|
||||
|
||||
.note-detail-readonly-text {
|
||||
padding-left: 24px;
|
||||
padding-inline-start: 24px;
|
||||
padding-top: 10px;
|
||||
font-family: var(--detail-font-family);
|
||||
min-height: 50px;
|
||||
@ -104,7 +104,7 @@ export default class ReadOnlyTextTypeWidget extends AbstractTextTypeWidget {
|
||||
const languageCode = note.getLabelValue("language");
|
||||
const correspondingLocale = getLocaleById(languageCode);
|
||||
const isRtl = correspondingLocale?.rtl;
|
||||
this.$content.attr("dir", isRtl ? "rtl" : "ltr");
|
||||
this.$widget.attr("dir", isRtl ? "rtl" : "ltr");
|
||||
|
||||
const blob = await note.getBlob();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user