esm7 / obsidian-rtl

RTL support for Obsidian.md
MIT License
137 stars 11 forks source link

Bullet point locked in ltr mode #84

Closed Ske-Man1149 closed 1 day ago

Ske-Man1149 commented 4 days ago

Note : In windows version

=> IMG-20240629-WA0000

esm7 commented 4 days ago

Can you elaborate:

  1. Which version of the plugin?
  2. Which version of Obsidian?
  3. Is the note defined as LTR/RTL/Auto?
  4. Is the Obsidian UI in LTR or RTL mode?
  5. Any custom themes used?

A screenshot of the whole Obsidian window can give some of these as context too.

esm7 commented 3 days ago

Even if it's irrelevant, would you mind sharing what it was, in case other users run into it?

Ske-Man1149 commented 3 days ago

@esm7 Sorry, I closed it by mistake

Ske-Man1149 commented 3 days ago

@esm7

Answers

  1. Which version of the plugin? => 2.0.0
  2. Which version of Obsidian? => 1.6.5
  3. Is the note defined as LTR/RTL/Auto? => RTL
  4. Is the Obsidian UI in LTR or RTL mode? => LTR
  5. Any custom themes used? => prism

    Notes:

  6. note on (5) : I enabled the default theme and the bug is still in.
  7. In the android version, the bug doesn't exist ¯\(ツ)/¯.
  8. I open new vault and install the plugin and still the same . image
Ske-Man1149 commented 1 day ago

CSS Snippet

.markdown-preview-view.is-rtl ul,
.markdown-preview-view.is-rtl ol {
    direction: rtl;
    text-align: right;
    list-style-position: inside;
}
.markdown-preview-view.is-rtl ul li,
.markdown-preview-view.is-rtl ol li {
    direction: rtl;
    text-align: right;
    list-style-position: inside;
}
.markdown-preview-view.is-rtl .list-bullet {
    float: right;
    margin-right: -12px;
}
.markdown-preview-view.is-rtl li > ul::before,
.markdown-preview-view.is-rtl li > ol::before {
    left: auto;
    right: -15px;
}