aboutsummaryrefslogtreecommitdiff
path: root/src/components/Tile.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-23 16:45:56 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-23 16:45:56 +1000
commit549d932d7b54946a2dc622ce12ff3415acd23880 (patch)
treeb562e060e6081da03a2a4c3a515f4edd4d94ca8d /src/components/Tile.vue
parentf277547d97130a94e2c3d04f4bf93fdb15f6e5fa (diff)
Fix root-displayed-in-italics bug
Diffstat (limited to 'src/components/Tile.vue')
-rw-r--r--src/components/Tile.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 3407b3f..df48e25 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -193,7 +193,7 @@ export default defineComponent({
padding: this.uiOpts.leafTilePadding + 'px',
lineHeight: this.uiOpts.leafHeaderFontSz + 'px',
fontSize: this.uiOpts.leafHeaderFontSz + 'px',
- fontStyle: this.tolNode.pSupport ? 'normal' : 'italic',
+ fontStyle: (this.tolNode.pSupport || this.tolNode.parent == null) ? 'normal' : 'italic',
color: headerColor,
// For ellipsis
overflow: 'hidden',
@@ -228,7 +228,7 @@ export default defineComponent({
borderTopLeftRadius: 'inherit',
borderTopRightRadius: 'inherit',
backgroundColor: this.uiOpts.nonleafHeaderBgColor,
- fontStyle: this.tolNode.pSupport ? 'normal' : 'italic',
+ fontStyle: (this.tolNode.pSupport || this.tolNode.parent == null) ? 'normal' : 'italic',
};
if (this.isOverflownRoot){
styles = {