All files / src/components FlowsHeader.vue

100% Statements 5/5
100% Branches 2/2
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72  29x 2x         2x                       29x                                                                                                        
<template>
  <nav class="navbar navbar-expand navbar-dark bg-dark">
    <div class="container-fluid">
      <a class="navbar-brand" :class="{ 'navbar-brand-light': resolvedTheme !== 'dark' }" href="/">
        <img src="/logo.svg" alt="Flows Logo" class="logo me-2" width="48" height="48" />
        Flows
      </a>
      <div class="navbar-nav ms-auto align-items-center">
        <HeaderUserActions />
      </div>
    </div>
  </nav>
</template>
 
<script setup lang="ts">
// @implements UC-AUTH-004.1
import HeaderUserActions from './HeaderUserActions.vue'
import { useTheme } from '@/composables/useTheme'
 
const { resolvedTheme } = useTheme()
</script>
 
<style scoped>
.navbar {
  z-index: 1100;
  margin: 0;
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 1rem !important;
}
 
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 500;
}
 
.navbar-brand-light {
  color: #212529;
}
 
.logo {
  height: 48px;
  width: auto;
  vertical-align: middle;
}
 
/* Mobile header */
@media (max-width: 767px) {
  .navbar {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    padding-left: 1rem !important;
    padding-right: 0.5rem !important;
  }
 
  .navbar-brand {
    font-size: 1.1rem;
  }
 
  .logo {
    width: 36px;
    height: 36px;
  }
}
</style>