Skip to content
Snippets Groups Projects
Commit ad548b43 authored by dcz's avatar dcz
Browse files

Final hierarchy window

parent 2f751c4a
Branches
No related tags found
No related merge requests found
...@@ -559,7 +559,7 @@ export default HierarchyEdit; ...@@ -559,7 +559,7 @@ export default HierarchyEdit;
@change-frame="changePreviewedUnifiedFrameId" @change-frame="changePreviewedUnifiedFrameId"
:forceRefresh="internalForceRefresh" /> :forceRefresh="internalForceRefresh" />
</div> </div>
<div v-if="right_pane_tab === 'hierarchy'" class="overflow-hidden center" style="height: calc(100% - 43px); width: calc(80%)"> <div v-if="right_pane_tab === 'hierarchy'" class="px-0 pt-0 pb-0 overflow-auto">
<hierarchy-element :node="createHierarchyTree()" :spacing_elem_type="'none'"/> <hierarchy-element :node="createHierarchyTree()" :spacing_elem_type="'none'"/>
</div> </div>
<div :class="right_pane_tab !== 'notes' && 'd-none'" id="notes-component"></div> <div :class="right_pane_tab !== 'notes' && 'd-none'" id="notes-component"></div>
......
...@@ -38,11 +38,11 @@ export default { ...@@ -38,11 +38,11 @@ export default {
}, },
getSpacingElem() { getSpacingElem() {
if(this.spacing_elem_type === "std") { if(this.spacing_elem_type === "std") {
return "&#9500;&#8594;"; return "&#9474; &#9500;&#8594; &#9474;";
} else if(this.spacing_elem_type === "top_corner") { } else if(this.spacing_elem_type === "top_corner") {
return "&#9484;&#8594;"; return "&#160; &#160; &#160; &#160; &#9484;&#8594; &#9474; &#9474;";
} else if(this.spacing_elem_type === "down_corner") { } else if(this.spacing_elem_type === "down_corner") {
return "&#9492;&#8594;"; return "&#9474; &#9474; &#9492;&#8594;";
} else { } else {
return ""; return "";
} }
...@@ -94,23 +94,30 @@ export default { ...@@ -94,23 +94,30 @@ export default {
<template> <template>
<div :style="nodeMargin"> <div :style="nodeMargin" style="height: 100%">
<div v-if="hasHypyronyms" v-show="showHypyronyms"> <div v-if="hasHypyronyms" v-show="showHypyronyms">
<hierarchy-element <hierarchy-element
v-for="(child, index) in node.hypyronyms" v-for="(child, index) in node.hypyronyms"
:key="child.id" :key="child.id"
:node="child" :node="child"
:spacing_elem_type='index === 0 ? "top_corner" : "std"' :spacing_elem_type='index === 0 ? "top_corner" : "std"'
:spacing="spacing + 10" :spacing="spacing + 40"
/> />
</div> </div>
<div show class="d-flex justify-content-between mb-1"> <div show class="d-flex justify-content-between mb-1">
<div class="row"> <div class="row">
<div class="col" v-html="getSpacingElem"/> <div class="col" style="max-width: 10px" v-html="getSpacingElem"/>
<div class="col"> <div class="col">
<div class="row">
<div align="left" style="display: table;"> <div class="col cursor-pointer" style="text-align: center; font-size: large"><span
<div class="unifiedFrame mt-3" id="hierarchy-unified-frame-title" v-html="node.unified_frame.title"></div> v-if="hasHypyronyms"
:class="toggleChildrenIcon"
@click="toggleHypyronyms"
@keypress="toggleHypyronyms">&#9650;</span></div>
</div>
<div class="row">
<div class="col" align="left" style="display: table;">
<div class="unifiedFrame" id="hierarchy-unified-frame-title" v-html="node.unified_frame.title"></div>
<table id="hierarchy-unified-frame" class="m-0 table-borderless border border-secondary text-dark frame active"> <table id="hierarchy-unified-frame" class="m-0 table-borderless border border-secondary text-dark frame active">
<tbody> <tbody>
<tr> <tr>
...@@ -157,18 +164,15 @@ export default { ...@@ -157,18 +164,15 @@ export default {
</tbody> </tbody>
</table> </table>
</div> </div>
{{ node.label }}
</div> </div>
<div class="col"><span <div class="row align-content-center">
<div class="col cursor-pointer" style="text-align: center; font-size: large"><span
v-if="hasHyponyms" v-if="hasHyponyms"
:class="toggleChildrenIcon" :class="toggleChildrenIcon"
@click="toggleHyponyms" @click="toggleHyponyms"
@keypress="toggleHyponyms">V</span></div> @keypress="toggleHyponyms">&#9660;</span></div>
<div class="col"><span </div>
v-if="hasHypyronyms" </div>
:class="toggleChildrenIcon"
@click="toggleHypyronyms"
@keypress="toggleHypyronyms">A</span></div>
</div> </div>
</div> </div>
<div v-if="hasHyponyms" v-show="showHyponyms"> <div v-if="hasHyponyms" v-show="showHyponyms">
...@@ -177,7 +181,7 @@ export default { ...@@ -177,7 +181,7 @@ export default {
:key="child.id" :key="child.id"
:node="child" :node="child"
:spacing_elem_type='index === node.hyponyms.length - 1 ? "down_corner" : "std"' :spacing_elem_type='index === node.hyponyms.length - 1 ? "down_corner" : "std"'
:spacing="spacing + 10" :spacing="spacing + 40"
/> />
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment