Skip to content

Commit f5e3b1d

Browse files
committed
small improvements
Signed-off-by: matthiasgekiere <[email protected]>
1 parent b049bed commit f5e3b1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/RuleResults.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function scrollToCodeSnippet(lineNumber) {
231231
232232
.result-footer {
233233
display: flex;
234-
justify-content: space-between;
234+
gap: 16px;
235235
}
236236
237237
.results-container {

src/components/TreeView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<div v-if="isOpen" class="node-children">
1212
<TreeView v-for="(child, index) in data?.children" :key="index" :data="child"
13-
@scrollToCodeSnippet="scrollToCodeSnippet($event, data?.matches[0]?.start.line)"
13+
@scrollToCodeSnippet="scrollToCodeSnippet($event, child?.matches[0]?.start.line)"
1414
@node-hover="handleNodeHover" />
1515
</div>
1616
</div>
@@ -65,7 +65,7 @@ const handleNodeHover = (location) => {
6565
6666
const scrollToCodeSnippet = (event, lineNumber) => {
6767
event.stopPropagation();
68-
emit('scrollToCodeSnippet', event, lineNumber ?? props.data?.matches?.[0]?.start?.line);
68+
emit('scrollToCodeSnippet', event, lineNumber);
6969
7070
}
7171
</script>

0 commit comments

Comments
 (0)