fix theming primary-colour text + right-to-left text in columns

This commit is contained in:
dragonwocky 2020-10-19 22:49:22 +11:00
parent 1618b5d966
commit 78667d16d6
2 changed files with 6 additions and 3 deletions

View File

@ -403,7 +403,8 @@
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;
}
[style*='fill: rgb(46, 170, 220)'] {

View File

@ -12,7 +12,7 @@ module.exports = {
tags: ['extension'],
name: 'right-to-left',
desc: 'enables auto rtl/ltr text direction detection.',
version: '1.4.0',
version: '1.4.1',
author: 'obahareth',
hacks: {
'renderer/preload.js'(store, __exports) {
@ -48,7 +48,9 @@ module.exports = {
function autoAlignPageContent() {
document
.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'));
document