Skip to content
Snippets Groups Projects
Commit 38758c36 authored by VIktorGrev's avatar VIktorGrev
Browse files

feat: Adding styling on navbar

parent c1733b3b
No related branches found
No related tags found
1 merge request!104Feat/profile and settings improvements
Pipeline #285193 passed with warnings
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<img src="@/assets/icons/storefront.svg">Butikk <img src="@/assets/icons/storefront.svg">Butikk
</router-link> </router-link>
</li> </li>
<li class="nav-item dropdown"> <li class="nav-item dropdown d-flex flex-column">
<a data-mdb-dropdown-init class=" nav-link dropdown-toggle hidden-arrow notification" href="#" id="navbarDropdownMenuLink" <a data-mdb-dropdown-init class=" nav-link dropdown-toggle hidden-arrow notification" href="#" id="navbarDropdownMenuLink"
role="button" data-bs-toggle="dropdown" aria-expanded="false"> role="button" data-bs-toggle="dropdown" aria-expanded="false">
<img src="/src/assets/icons/bell-white.svg"> <img src="/src/assets/icons/bell-white.svg">
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<img :src="notificationImageMapper[String(item.notificationType)]" alt="Varslingsikon" class="notification-icon"> <img :src="notificationImageMapper[String(item.notificationType)]" alt="Varslingsikon" class="notification-icon">
</div> </div>
<div class="flex-grow-1 ms-3"> <div class="flex-grow-1 ms-3">
<div class="not-item dropdown-item">{{item.message}}</div> <div class="not-item dropdown-item text-wrap">{{item.message}}</div>
</div> </div>
</router-link> </router-link>
</li> </li>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<li>Ingen varslinger</li> <li>Ingen varslinger</li>
</ul> </ul>
</li> </li>
<li v-if="userStore.isLoggedIn" class="nav-item dropdown"> <li v-if="userStore.isLoggedIn" class="nav-item dropdown d-flex flex-column">
<a <a
data-cy="user" data-cy="user"
:class="['nav-link', 'dropdown-toggle', 'username-text', 'text-white', { 'underline-active': !isAnyActivePage() }]" :class="['nav-link', 'dropdown-toggle', 'username-text', 'text-white', { 'underline-active': !isAnyActivePage() }]"
...@@ -463,6 +463,12 @@ onMounted(() => { ...@@ -463,6 +463,12 @@ onMounted(() => {
margin: 0 140px; margin: 0 140px;
} }
@media (max-width: 768px) {
.container-fluid {
margin: 0 20px;
}
}
#logo { #logo {
font-size: 2.5rem; font-size: 2.5rem;
height: 100%; height: 100%;
......
...@@ -18,4 +18,10 @@ import { useUserInfoStore } from '@/stores/UserStore'; ...@@ -18,4 +18,10 @@ import { useUserInfoStore } from '@/stores/UserStore';
min-height: 700px; min-height: 700px;
margin: 0 140px; margin: 0 140px;
} }
@media (max-width: 768px) {
#minHeight {
margin: 0 20px;
}
}
</style> </style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment