From e9c4df26a16eab83bcc83ff94cb0e5c8c4c42e24 Mon Sep 17 00:00:00 2001 From: Lolginer Date: Tue, 21 Nov 2023 10:45:38 +0100 Subject: [PATCH] Constant navbar width --- src/App.jsx | 10 +++++----- src/css/App.css | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 00c456a..573c24c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -105,14 +105,14 @@ export default class App extends Component { diff --git a/src/css/App.css b/src/css/App.css index a61e537..d9eadbb 100644 --- a/src/css/App.css +++ b/src/css/App.css @@ -107,6 +107,16 @@ body { #kopia .navbar-light .navbar-nav .nav-link.active, #kopia .navbar-light .navbar-nav .show>.nav-link { color: var(--color-text-nav); + text-align: center; +} + +#kopia .navbar-light .navbar-nav .nav-link::after { + display: block; + content: attr(data-title); + font-weight: bold; + height: 0px; + overflow: hidden; + visibility: hidden; } #kopia .navbar-light .navbar-nav .nav-link:hover {