diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-12 13:19:34 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-13 20:21:47 -0400 |
commit | 42c9000389a114463447c6e0a18b77c408ef5388 (patch) | |
tree | de1e0f83d37aacde068c261b62e0ae3e1ecdd7ec /src/content | |
parent | 5c66e7be6dcbfd7ecbb31b29c8c220d2ed5e0182 (diff) |
content, css: refactor tooltip classes, offset icons-tooltip in lists
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateDatetimestampTemplate.js | 4 | ||||
-rw-r--r-- | src/content/dependencies/linkContribution.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/generateDatetimestampTemplate.js b/src/content/dependencies/generateDatetimestampTemplate.js index dcc79130..29c81572 100644 --- a/src/content/dependencies/generateDatetimestampTemplate.js +++ b/src/content/dependencies/generateDatetimestampTemplate.js @@ -28,8 +28,8 @@ export default { slots.mainContent), slots.tooltipContent && - html.tag('span', {class: 'datetimestamp-tooltip'}, - html.tag('span', {class: 'datetimestamp-tooltip-content'}, + html.tag('span', {class: ['tooltip', 'datetimestamp-tooltip']}, + html.tag('span', {class: 'tooltip-content'}, slots.tooltipContent)), ]), }; diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js index f0f36bcb..1b656516 100644 --- a/src/content/dependencies/linkContribution.js +++ b/src/content/dependencies/linkContribution.js @@ -64,11 +64,11 @@ export default { if (hasExternalIcons && slots.iconMode === 'tooltip') { content = [ content, - html.tag('span', {class: ['icons', 'icons-tooltip']}, + html.tag('span', {class: ['icons', 'tooltip', 'icons-tooltip']}, {[html.noEdgeWhitespace]: true}, {inert: true}, - html.tag('span', {class: 'icons-tooltip-content'}, + html.tag('span', {class: 'tooltip-content'}, {[html.noEdgeWhitespace]: true}, {[html.joinChildren]: ''}, |