Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
50d4c5f9
Commit
50d4c5f9
authored
Sep 16, 2021
by
dindigala
Browse files
refactor: addressing review comments
parent
c59f2737
Pipeline
#229373
passed with stages
in 3 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/tree.vue
View file @
50d4c5f9
...
...
@@ -8,7 +8,7 @@
:nodes=
"tree"
:selected-color=
"$q.dark.isActive ? 'grey' : ''"
:selected.sync=
"selected"
:style=
"
`max-height:$
{height}px`
"
:style=
"
treeStyle
"
>
<template
#default-body
="
{node}"
...
...
@@ -59,6 +59,11 @@ export default {
sequenceindex
:
0
,
};
},
computed
:
{
treeStyle
()
{
return
`max-height:
${
this
.
height
}
px;`
;
},
},
created
()
{
this
.
fasCaretRight
=
fasCaretRight
;
},
...
...
@@ -106,7 +111,7 @@ export default {
const
el
=
document
.
querySelector
(
'
.item-content
'
);
if
(
el
&&
this
.
height
!==
el
.
clientHeight
)
{
this
.
height
=
el
.
clientHeight
;
this
.
height
=
el
.
clientHeight
-
(
document
.
querySelector
(
'
.tabs-container
'
)?.
clientHeight
||
0
);
// Tab spacing height.
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment