Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Self Service Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaften der Fakultät für Informatik
Identity Management
Self Service Frontend
Commits
1bd6c0ca
Verified
Commit
1bd6c0ca
authored
4 months ago
by
Adrian Paschkowski
Browse files
Options
Downloads
Patches
Plain Diff
Fix Header z-index
parent
6b7c04ca
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/layout/Header.tsx
+4
-2
4 additions, 2 deletions
src/components/layout/Header.tsx
src/constants.ts
+1
-0
1 addition, 0 deletions
src/constants.ts
with
5 additions
and
2 deletions
src/components/layout/Header.tsx
+
4
−
2
View file @
1bd6c0ca
import
{
Link
}
from
"
react-router-dom
"
;
import
{
STYLES
}
from
"
../../constants
"
;
import
{
STYLES
,
Z_INDEXES
}
from
"
../../constants
"
;
import
type
{
WithClassName
}
from
"
../../utils/types
"
;
import
classNames
from
"
classnames
"
;
import
NavigationHamburger
from
"
./NavigationHamburger
"
;
...
...
@@ -8,7 +8,9 @@ import ThemeToggle from "../widgets/ThemeToggle";
export
default
function
Header
()
{
return
(
<
div
className
=
"max-lg:fixed inset-x-0 top-0 bg-body-light dark:bg-body-dark lg:contents"
>
<
div
className
=
"max-lg:fixed inset-x-0 top-0 bg-body-light dark:bg-body-dark lg:contents"
style
=
{
{
zIndex
:
Z_INDEXES
.
HEADER
,
}
}
>
<
HeaderLogo
className
=
{
`max-lg:hidden border-b
${
STYLES
.
BORDER_COLOR
}
`
}
/>
<
header
className
=
{
`flex flex-row items-center border-b
${
STYLES
.
BORDER_COLOR
}
pr-4 sm:pr-8`
}
>
<
HeaderLogo
className
=
"max-sm:hidden lg:hidden ml-5"
/>
...
...
This diff is collapsed.
Click to expand it.
src/constants.ts
+
1
−
0
View file @
1bd6c0ca
...
...
@@ -17,6 +17,7 @@ export const STYLES = {
export
const
NO_BREAK_SPACE
=
"
\
u00a0
"
;
export
const
Z_INDEXES
=
{
HEADER
:
9000
,
GLOBAL_OVERLAY
:
10000
,
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment