From f0ecf2a11368aedca55a8c2df2549fd335efc7e5 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 23 Jun 2022 19:32:48 +1000 Subject: Indicate p-support with asterisk, and stop indicating alt-name usage --- src/components/Tile.vue | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/components/Tile.vue b/src/components/Tile.vue index df48e25..7b412b2 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -77,16 +77,11 @@ export default defineComponent({ (this.layoutNode.sepSweptArea != null && this.layoutNode.sepSweptArea.sweptLeft); }, displayName(): string { - if (this.tolNode.commonName != null){ - let newName = capitalizeWords(this.tolNode.commonName) - if (/^['"].*['"]$/.test(newName) == false){ - newName = "'" + newName + "'"; - } - return newName; - } else { - return capitalizeWords(this.layoutNode.name); + let newName = capitalizeWords(this.tolNode.commonName || this.layoutNode.name); + if (!this.tolNode.pSupport && this.tolNode.parent != null){ + newName += '*'; } - return capitalizeWords(this.tolNode.commonName || this.layoutNode.name); + return newName; }, hasCompoundImage(): boolean { return Array.isArray(this.tolNode.imgName); @@ -193,7 +188,6 @@ export default defineComponent({ padding: this.uiOpts.leafTilePadding + 'px', lineHeight: this.uiOpts.leafHeaderFontSz + 'px', fontSize: this.uiOpts.leafHeaderFontSz + 'px', - fontStyle: (this.tolNode.pSupport || this.tolNode.parent == null) ? 'normal' : 'italic', color: headerColor, // For ellipsis overflow: 'hidden', @@ -228,7 +222,6 @@ export default defineComponent({ borderTopLeftRadius: 'inherit', borderTopRightRadius: 'inherit', backgroundColor: this.uiOpts.nonleafHeaderBgColor, - fontStyle: (this.tolNode.pSupport || this.tolNode.parent == null) ? 'normal' : 'italic', }; if (this.isOverflownRoot){ styles = { -- cgit v1.2.3