nothingislost / obsidian-dynamic-highlights

An experimental Obsidian plugin that highlights all occurrences of the word under the cursor
MIT License
132 stars 7 forks source link

regex toggle covers save button #72

Open Leopixelo opened 1 year ago

Leopixelo commented 1 year ago

Hello,

I noticed that part of the save button in the settings menu is covered by the regex-toggle. When clicking on the save button it toggles the regex-toggle.

image

https://github.com/nothingislost/obsidian-dynamic-highlights/assets/54289976/448f6f4c-ff22-42e2-b05c-e910e263f4c1

By disabling this line the problem goes away: https://github.com/nothingislost/obsidian-dynamic-highlights/blob/2b13ff5924de822e9dcb514352ed0170aa06e0dd/styles.css#L107

With this line disabled the UI still works perfectly for me.

Leopixelo commented 1 year ago

I think #64 is also referring to this issue, although it is not explicitly mentioned.

EricBrunMawuli commented 9 months ago

Commenting line 107 in style.css (width: 15ch;) also worked for me to fix the issue.

Moyf commented 6 months ago

Actually you can add this css snippet to fix it:

.highlighter-settings-regex input[type="checkbox"] {
    width: 30px !important;
    height: 20px !important;
}

Add from here: image

And then the button zone is normal: image

@Leopixelo