From 4b6864534b59647112e50ffc6f8ff096d61fdfae Mon Sep 17 00:00:00 2001 From: w-4 <36057469+w-4@users.noreply.github.com> Date: Sun, 24 May 2020 01:41:54 +0700 Subject: [PATCH] Fix header contents moving when opening modal (#2131) * add navbar-fixed-top css class * App-header position:fixed --- less/common/App.less | 6 +----- views/frontend/admin.blade.php | 2 +- views/frontend/forum.blade.php | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/less/common/App.less b/less/common/App.less index b20588ac8..eaef1d2cb 100644 --- a/less/common/App.less +++ b/less/common/App.less @@ -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); } diff --git a/views/frontend/admin.blade.php b/views/frontend/admin.blade.php index a5ca2b803..2efce2af5 100644 --- a/views/frontend/admin.blade.php +++ b/views/frontend/admin.blade.php @@ -4,7 +4,7 @@