]> source.dussan.org Git - nextcloud-server.git/commitdiff
Floating files header
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 30 Apr 2019 07:20:00 +0000 (09:20 +0200)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 7 May 2019 17:06:58 +0000 (19:06 +0200)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/files/css/files.scss
apps/files/js/filelist.js

index a5e28ff38da54b06e50f72c0b2c559f2efd26689..eb0e891e5c195b2e93ab06ac839fd8ea21d9a40d 100644 (file)
        position: relative;
        width: 100%;
        min-width: 250px;
+       display: flex;
+       flex-direction: column;
        // hide table if emptycontent is not hidden
        #emptycontent:not(.hidden) ~ & {
                display: none;
        }
 }
 
+@media only screen and (min-width: $breakpoint-mobile + 1) {
+       #filestable {
+               // floating header
+               thead {
+                       position: sticky;
+                       // header + breadcrumbs
+                       top: $header-height + 44px;
+                       z-index: 1000;
+                       display: block;
+                       background-color: var(--color-main-background-translucent);
+               }
+       }
+}
+
 /* fit app list view heights */
 .app-files #app-content>.viewcontainer {
        min-height: 0%;
index 44c4c5abec997cb94e943d9554c2a1afe0ea222f..c887c6bea5f083e5ae978641e47806c758bdbf18 100644 (file)
                        });
 
                        this.breadcrumb._resize();
-
-                       this.$table.find('>thead').width($('#app-content').width() - OC.Util.getScrollBarWidth());
                },
 
                /**