Skip to content

Commit 92fcb8d

Browse files
committed
Formatting
1 parent 06678bd commit 92fcb8d

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

frontend/src/constants/mainLayout.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export const defaultTabs: Tab[] = [
99
external: false,
1010
dropdown: {
1111
show: false,
12-
children: [
13-
{name: 'Documentation', route: '/documentation', external: false },
14-
],
12+
children: [{ name: 'Documentation', route: '/documentation', external: false }],
1513
},
1614
},
1715
{ name: 'Tools', route: '/tools', external: false },

frontend/src/layouts/MainLayout.vue

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
:to="tab.external ? undefined : tab.route"
2020
:href="tab.external ? tab.route : undefined"
2121
:target="tab.external ? '_blank' : undefined"
22-
@mouseenter="() => {if (tab.dropdown) tab.dropdown.show = true}"
22+
@mouseenter="
23+
() => {
24+
if (tab.dropdown) tab.dropdown.show = true;
25+
}
26+
"
2327
flat
2428
class="full-height"
2529
>
@@ -31,7 +35,11 @@
3135
auto-close
3236
anchor="bottom middle"
3337
self="top middle"
34-
@mouseleave="() => {if (tab.dropdown) tab.dropdown.show = false}"
38+
@mouseleave="
39+
() => {
40+
if (tab.dropdown) tab.dropdown.show = false;
41+
}
42+
"
3543
>
3644
<q-list>
3745
<q-item
@@ -57,7 +65,11 @@
5765
:key="tab.name"
5866
:to="tab.external ? undefined : tab.route"
5967
:href="tab.external ? tab.route : undefined"
60-
@mouseenter="() => {if (tab.dropdown) tab.dropdown.show = true}"
68+
@mouseenter="
69+
() => {
70+
if (tab.dropdown) tab.dropdown.show = true;
71+
}
72+
"
6173
clickable
6274
class="toolbar-link items-center"
6375
>
@@ -70,7 +82,11 @@
7082
auto-close
7183
anchor="center left"
7284
self="center right"
73-
@mouseleave="() => {if (tab.dropdown) tab.dropdown.show = false}"
85+
@mouseleave="
86+
() => {
87+
if (tab.dropdown) tab.dropdown.show = false;
88+
}
89+
"
7490
>
7591
<q-list>
7692
<q-item

0 commit comments

Comments
 (0)