mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-09 15:09:02 +00:00
fix theming primary-colour text + right-to-left text in columns
This commit is contained in:
parent
1618b5d966
commit
78667d16d6
@ -403,7 +403,8 @@
|
|||||||
background: var(--theme--selected) !important;
|
background: var(--theme--selected) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[style*=' color: rgb(46, 170, 220)'] {
|
[style*=' color: rgb(46, 170, 220)'],
|
||||||
|
[style^='color: rgb(46, 170, 220)'] {
|
||||||
color: var(--theme--primary) !important;
|
color: var(--theme--primary) !important;
|
||||||
}
|
}
|
||||||
[style*='fill: rgb(46, 170, 220)'] {
|
[style*='fill: rgb(46, 170, 220)'] {
|
||||||
|
@ -12,7 +12,7 @@ module.exports = {
|
|||||||
tags: ['extension'],
|
tags: ['extension'],
|
||||||
name: 'right-to-left',
|
name: 'right-to-left',
|
||||||
desc: 'enables auto rtl/ltr text direction detection.',
|
desc: 'enables auto rtl/ltr text direction detection.',
|
||||||
version: '1.4.0',
|
version: '1.4.1',
|
||||||
author: 'obahareth',
|
author: 'obahareth',
|
||||||
hacks: {
|
hacks: {
|
||||||
'renderer/preload.js'(store, __exports) {
|
'renderer/preload.js'(store, __exports) {
|
||||||
@ -48,7 +48,9 @@ module.exports = {
|
|||||||
function autoAlignPageContent() {
|
function autoAlignPageContent() {
|
||||||
document
|
document
|
||||||
.querySelectorAll(
|
.querySelectorAll(
|
||||||
'.notion-page-content > div[data-block-id]:not([dir]), [placeholder="Untitled"]:not([dir])'
|
`.notion-page-content > div[data-block-id]:not([dir]):not(.notion-column_list-block),
|
||||||
|
[placeholder="Untitled"]:not([dir]),
|
||||||
|
.notion-column-block > div[data-block-id]:not([dir])`
|
||||||
)
|
)
|
||||||
.forEach((block) => block.setAttribute('dir', 'auto'));
|
.forEach((block) => block.setAttribute('dir', 'auto'));
|
||||||
document
|
document
|
||||||
|
Loading…
Reference in New Issue
Block a user