From e7b2d38af988f3d881239eeb198958d700e87690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Wed, 15 Nov 2023 09:58:08 +0100 Subject: [PATCH] Fix overflow in the pane wrapper header --- src/components/panes/KeyResultPane.vue | 30 +++++------ src/components/panes/ObjectivePane.vue | 30 +++++------ src/components/panes/PaneWrapper.vue | 69 ++++++++++++++------------ src/components/panes/TimelinePane.vue | 8 +-- 4 files changed, 73 insertions(+), 64 deletions(-) diff --git a/src/components/panes/KeyResultPane.vue b/src/components/panes/KeyResultPane.vue index 65b104000..e6086721c 100644 --- a/src/components/panes/KeyResultPane.vue +++ b/src/components/panes/KeyResultPane.vue @@ -7,11 +7,13 @@ $router.push({ name: 'ObjectiveHome', params: { objectiveId: activeObjective.id } }) " > - +

{{ $t('general.keyResult') }} @@ -328,12 +330,6 @@ export default { .key-result-pane { background-color: var(--color-gray); - &__title { - @include bp('laptop-up') { - margin-top: 2rem; - } - } - &__details { display: flex; flex-direction: column; @@ -388,11 +384,15 @@ export default { border: 0; } -::v-deep .pkt-breadcrumbs--mobile { - width: 100%; +::v-deep .pkt-breadcrumbs { + display: flex; + + &--mobile { + width: 100%; - .pkt-breadcrumbs__text { - white-space: nowrap; + .pkt-breadcrumbs__text { + white-space: nowrap; + } } } diff --git a/src/components/panes/ObjectivePane.vue b/src/components/panes/ObjectivePane.vue index 4ae36c692..617bfe2e2 100644 --- a/src/components/panes/ObjectivePane.vue +++ b/src/components/panes/ObjectivePane.vue @@ -5,11 +5,13 @@ closable @close="$router.push({ name: 'ItemHome' })" > - +

{{ $t('general.objective') }} @@ -237,12 +239,6 @@ export default { .objective-pane { background-color: var(--color-gray-light); - &__title { - @include bp('laptop-up') { - margin-top: 2rem; - } - } - &__key-results { margin-top: 3rem; @@ -320,11 +316,15 @@ export default { background-color: transparent; } -::v-deep .pkt-breadcrumbs--mobile { - width: 100%; +::v-deep .pkt-breadcrumbs { + display: flex; + + &--mobile { + width: 100%; - .pkt-breadcrumbs__text { - white-space: nowrap; + .pkt-breadcrumbs__text { + white-space: nowrap; + } } } diff --git a/src/components/panes/PaneWrapper.vue b/src/components/panes/PaneWrapper.vue index 7a084595c..ba687c0b4 100644 --- a/src/components/panes/PaneWrapper.vue +++ b/src/components/panes/PaneWrapper.vue @@ -1,23 +1,25 @@