feat(rtl): adjust padding for read-only text

This commit is contained in:
Elian Doran 2025-03-05 14:39:26 +02:00
parent 51813099b3
commit 4a75f9f48b
No known key found for this signature in database

View File

@ -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();