Skip to content

Commit 052e673

Browse files
committed
file-tree: reduce nested div
1 parent d4410d3 commit 052e673

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

os-checks/pages/file-tree.vue

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
<template>
22
<div>
3-
<div style="display: flex" v-if="displayFilters">
4-
<!-- <div style="max-width: 10%; display: grid; place-items: center; padding: 0px 20px;"> -->
5-
<!-- <div> -->
6-
<!-- <b>Count</b><br> -->
7-
<!-- <Button style="margin-top: 5px;" severity="danger" v-if="count">{{ count }}</Button> -->
8-
<!-- </div> -->
9-
<!-- </div> -->
103

11-
<div style="flex:1">
12-
<div style="padding: 6px 8px 6px 8px">
13-
<span class="input">User:</span>
14-
<span class="select">
15-
<Select v-model="selected.user" filter :options="users" :optionLabel="label" />
16-
</span>
4+
<div v-if="displayFilters">
5+
<div style="padding: 6px 8px 6px 8px">
6+
<span class="input">User:</span>
7+
<span class="select">
8+
<Select v-model="selected.user" filter :options="users" :optionLabel="label" />
9+
</span>
1710

18-
<span class="input">Repo:</span>
19-
<span class="select">
20-
<Select v-model="selected.repo" filter :options="repos" :optionLabel="label" />
21-
</span>
11+
<span class="input">Repo:</span>
12+
<span class="select">
13+
<Select v-model="selected.repo" filter :options="repos" :optionLabel="label" />
14+
</span>
2215

23-
<DropDownWithCount v-model="selected.target" tag="Target" :all="ALL_TARGETS" :counts="targets" />
16+
<DropDownWithCount v-model="selected.target" tag="Target" :all="ALL_TARGETS" :counts="targets" />
2417

25-
</div>
18+
</div>
2619

27-
<div style="padding: 2px 8px 10px 8px">
20+
<div style="padding: 2px 8px 10px 8px">
2821

29-
<DropDownWithCount v-model="selected.pkg" tag="Pkg" :all="ALL_PKGS" :counts="pkgs" />
30-
<DropDownWithCount v-model="selected.features" tag="Features" :all="ALL_FEATURES_SETS" :counts="features" />
22+
<DropDownWithCount v-model="selected.pkg" tag="Pkg" :all="ALL_PKGS" :counts="pkgs" />
23+
<DropDownWithCount v-model="selected.features" tag="Features" :all="ALL_FEATURES_SETS" :counts="features" />
3124

32-
<DropDownWithCount v-model="selected.checker" tag="Checker" :all="ALL_CHECKERS" :counts="checkers" />
33-
<DropDownWithCount v-model="selected.kind" tag="Kind" :all="ALL_KINDS" :counts="kinds" />
25+
<DropDownWithCount v-model="selected.checker" tag="Checker" :all="ALL_CHECKERS" :counts="checkers" />
26+
<DropDownWithCount v-model="selected.kind" tag="Kind" :all="ALL_KINDS" :counts="kinds" />
3427

35-
</div>
3628
</div>
37-
3829
</div>
3930

4031
<FileTree2 :get="got2" :count="count" v-model:filters="displayFilters" v-model:lockURL="lockURL" />

0 commit comments

Comments
 (0)