aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackend/data/genOtolData.py3
-rw-r--r--src/components/Tile.vue4
2 files changed, 2 insertions, 5 deletions
diff --git a/backend/data/genOtolData.py b/backend/data/genOtolData.py
index 36b6197..b5e0055 100755
--- a/backend/data/genOtolData.py
+++ b/backend/data/genOtolData.py
@@ -231,9 +231,6 @@ for (id, node) in nodeMap.items():
supportQty = len(nodeAnns["supported_by"]) if "supported_by" in nodeAnns else 0
conflictQty = len(nodeAnns["conflicts_with"]) if "conflicts_with" in nodeAnns else 0
node.pSupport = supportQty > 0 and conflictQty == 0
- # Root node gets support
- if node.parentId == None:
- node.pSupport = True
print("Creating nodes and edges tables")
dbCon = sqlite3.connect(dbFile)
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 = {