Fix header contents moving when opening modal (#2131)

* add navbar-fixed-top css class

* App-header position:fixed
This commit is contained in:
w-4 2020-05-24 01:41:54 +07:00 committed by GitHub
parent 12aad66049
commit c6fc8a8cd6
3 changed files with 3 additions and 7 deletions

View File

@ -236,16 +236,12 @@
.App-header {
padding: 8px;
height: @header-height;
position: absolute;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: @zindex-header;
.affix & {
position: fixed;
}
& when (@config-colored-header = true) {
.light-contents(@header-color, @header-control-bg, @header-control-color);
}

View File

@ -4,7 +4,7 @@
<div id="drawer" class="App-drawer">
<header id="header" class="App-header">
<header id="header" class="App-header navbar-fixed-top">
<div id="header-navigation" class="Header-navigation"></div>
<div class="container">
<h1 class="Header-title">

View File

@ -6,7 +6,7 @@
<div id="drawer" class="App-drawer">
<header id="header" class="App-header">
<header id="header" class="App-header navbar-fixed-top">
<div id="header-navigation" class="Header-navigation"></div>
<div class="container">
<h1 class="Header-title">