From b353be456e56943760a6b55696b92279e907ce7c Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Wed, 17 Jan 2024 19:42:32 +0500 Subject: [PATCH] add create and pin option to `MultipleViewList` as well This adds an upper div to the `.history-picker` which can be clicked to create and pin a new history. --- .../components/History/HistoryScrollList.vue | 10 +-- .../History/Multiple/MultipleViewList.vue | 77 ++++++++++++++++--- 2 files changed, 70 insertions(+), 17 deletions(-) diff --git a/client/src/components/History/HistoryScrollList.vue b/client/src/components/History/HistoryScrollList.vue index 35f1ec23e268..55d3e4f8da59 100644 --- a/client/src/components/History/HistoryScrollList.vue +++ b/client/src/components/History/HistoryScrollList.vue @@ -208,7 +208,7 @@ async function loadMore(noScroll = false) { :data-pk="history.id" button :class="{ - current: !isMultiviewPanel && history.id === currentHistoryId, + current: history.id === currentHistoryId, 'panel-item': isMultiviewPanel, }" :active="isActiveItem(history)" @@ -373,6 +373,10 @@ async function loadMore(noScroll = false) { display: flex; border-radius: 0; + &.current { + border-left: 0.25rem solid $brand-primary; + } + &.panel-item { justify-content: space-between; align-items: center; @@ -382,10 +386,6 @@ async function loadMore(noScroll = false) { } &:not(&.panel-item) { - &.current { - border-left: 0.25rem solid $brand-primary; - } - &:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; diff --git a/client/src/components/History/Multiple/MultipleViewList.vue b/client/src/components/History/Multiple/MultipleViewList.vue index 58b7f02af985..f32bb12449e3 100644 --- a/client/src/components/History/Multiple/MultipleViewList.vue +++ b/client/src/components/History/Multiple/MultipleViewList.vue @@ -1,4 +1,7 @@