fix table view sticky header

This commit is contained in:
Jonas Heinrich 2021-03-13 13:43:08 +01:00
parent 8371027730
commit 8ed9f800f0
2 changed files with 19 additions and 0 deletions

View File

@ -25,6 +25,12 @@
<Navigation <Navigation
:station-data="stations" /> :station-data="stations" />
<AppContent> <AppContent>
<div class="controls">
<Breadcrumbs>
<Breadcrumb title="Home" href="#/" />
<Breadcrumb title="Categories" href="#/categories" />
</Breadcrumbs>
</div>
<Table <Table
v-show="!pageLoading && stations.length > 0" v-show="!pageLoading && stations.length > 0"
:station-data="stations" :station-data="stations"
@ -55,6 +61,8 @@
import Content from '@nextcloud/vue/dist/Components/Content' import Content from '@nextcloud/vue/dist/Components/Content'
import AppContent from '@nextcloud/vue/dist/Components/AppContent' import AppContent from '@nextcloud/vue/dist/Components/AppContent'
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent' import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
import Breadcrumbs from '@nextcloud/vue/dist/Components/Breadcrumbs'
import Breadcrumb from '@nextcloud/vue/dist/Components/Breadcrumb'
import Navigation from './../components/Navigation' import Navigation from './../components/Navigation'
import Table from './../components/Table' import Table from './../components/Table'
import Sidebar from './../components/Sidebar' import Sidebar from './../components/Sidebar'
@ -72,6 +80,8 @@ export default {
EmptyContent, EmptyContent,
Table, Table,
Sidebar, Sidebar,
Breadcrumbs,
Breadcrumb,
}, },
data: () => ({ data: () => ({
pageLoading: false, pageLoading: false,

View File

@ -25,6 +25,11 @@
<Navigation <Navigation
:station-data="stations" /> :station-data="stations" />
<AppContent> <AppContent>
<div class="controls">
<Breadcrumbs>
<Breadcrumb title="Home" href="#/" />
</Breadcrumbs>
</div>
<Table <Table
v-show="!pageLoading && stations.length > 0" v-show="!pageLoading && stations.length > 0"
v-resize="onResize" v-resize="onResize"
@ -56,6 +61,8 @@
import Content from '@nextcloud/vue/dist/Components/Content' import Content from '@nextcloud/vue/dist/Components/Content'
import AppContent from '@nextcloud/vue/dist/Components/AppContent' import AppContent from '@nextcloud/vue/dist/Components/AppContent'
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent' import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
import Breadcrumbs from '@nextcloud/vue/dist/Components/Breadcrumbs'
import Breadcrumb from '@nextcloud/vue/dist/Components/Breadcrumb'
import Navigation from './../components/Navigation' import Navigation from './../components/Navigation'
import Table from './../components/Table' import Table from './../components/Table'
import Sidebar from './../components/Sidebar' import Sidebar from './../components/Sidebar'
@ -73,6 +80,8 @@ export default {
Table, Table,
EmptyContent, EmptyContent,
Sidebar, Sidebar,
Breadcrumbs,
Breadcrumb,
}, },
data: () => ({ data: () => ({
pageLoading: false, pageLoading: false,