Skip to content

Commit 239550e

Browse files
Merge pull request #122 from MetRonnie/sticky-toolbar
Simplify sticky toolbar styling
2 parents 1d31a3d + ce2d28d commit 239550e

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

src/components/cylc/gscan/GScan.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
9999
:workflows="workflows"
100100
:node-filter-func="filterNode"
101101
tree-item-component="GScanTreeItem"
102-
class="c-gscan-workflow"
102+
class="c-gscan-workflow pa-0"
103103
ref="tree"
104104
v-bind="{ filterState }"
105105
/>

src/components/cylc/table/Table.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
density="compact"
2727
v-model:page="page"
2828
v-model:items-per-page="itemsPerPage"
29+
fixed-header
2930
>
3031
<template v-slot:item.task.name="{ item }">
3132
<div

src/components/cylc/tree/Tree.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
-->
1717

1818
<template>
19-
<v-container
20-
fluid
21-
class="pa-0"
22-
>
19+
<div>
2320
<component
2421
:is="treeItemComponent"
2522
v-for="child of rootChildren"
2623
:key="child.id"
2724
:node="child"
2825
v-bind="{ hoverable, cyclePointsOrderDesc, expandAll, filteredOutNodesCache, flat }"
2926
/>
30-
</v-container>
27+
</div>
3128
</template>
3229

3330
<script>

src/views/Table.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
<template>
1919
<v-container
2020
fluid
21-
class="c-table ma-0 pa-2 h-100 flex-column d-flex"
21+
class="c-table pa-2 pb-0 h-100 flex-column d-flex"
2222
>
2323
<ViewToolbar
2424
:groups="controlGroups"
@@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
<TableComponent
2929
:tasks="filteredTasks"
3030
v-model:initial-options="dataTableOptions"
31+
class="mh-100"
3132
/>
3233
</div>
3334
</v-container>

src/views/Tree.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
-->
1717

1818
<template>
19-
<div class="h-100 c-tree">
19+
<div class="c-tree h-100 overflow-auto">
2020
<ViewToolbar
2121
class="toolbar"
2222
:groups="controlGroups"
@@ -356,16 +356,13 @@ export default {
356356
.toolbar {
357357
position: sticky;
358358
top: 0;
359-
height: 4em;
360359
padding: 0.5em;
361360
background: white;
362361
z-index: 1;
363362
}
364363
.tree {
365-
height: calc(100% - 4.1em);
366364
width: 100%;
367-
padding-left: 0.5em !important;
368-
overflow-y: scroll;
365+
padding: 0 0.5em;
369366
}
370367
}
371368
</style>

0 commit comments

Comments
 (0)