diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-23 19:32:48 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-23 19:32:48 +1000 |
| commit | f0ecf2a11368aedca55a8c2df2549fd335efc7e5 (patch) | |
| tree | 0c32630a97f2d029da10d823387720a6f1c3ce40 | |
| parent | 71c8ae8398b347b36ca6b08e3b10493fbcf3f6af (diff) | |
Indicate p-support with asterisk, and stop indicating alt-name usage
| -rw-r--r-- | src/components/Tile.vue | 15 |
1 files 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 = { |
