Merge pull request #11581 from nextcloud/users-table-header-fix

Fix sticky header on users list
This commit is contained in:
John Molakvoæ 2018-10-04 09:04:56 +02:00 committed by GitHub
commit 0b27595eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1422,7 +1422,7 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
/* let's define the column until storage path, /* let's define the column until storage path,
what follows will be manually defined */ what follows will be manually defined */
grid-template-columns: 44px minmax(150px, 1fr) repeat(auto-fit, minmax(120px, 1fr)); grid-template-columns: 44px minmax(150px, 1fr) repeat(auto-fit, minmax(120px, 1fr));
border-top: var(--color-border) 1px solid; border-bottom: var(--color-border) 1px solid;
&.disabled { &.disabled {
opacity: .5; opacity: .5;
} }
@ -1456,7 +1456,7 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
align-self: normal; align-self: normal;
background-color: var(--color-main-background); background-color: var(--color-main-background);
z-index: 55; /* above multiselect */ z-index: 55; /* above multiselect */
top: 0; top: $header-height;
&.sticky { &.sticky {
box-shadow: 0 -2px 10px 1px var(--color-box-shadow); box-shadow: 0 -2px 10px 1px var(--color-box-shadow);
} }
@ -1469,9 +1469,9 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
z-index: 0; z-index: 0;
} }
} }
// separate prop to set initial value to top:0 // separate prop to set initial value to top: 50px
&#new-user { &#new-user {
top: $grid-row-height; top: $header-height + $grid-row-height;
} }
&#grid-header { &#grid-header {
color: var(--color-text-maxcontrast); color: var(--color-text-maxcontrast);