From fdc4c1bc28d53fee4a97c9019dafdf5e3a916108 Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Tue, 10 Jan 2023 21:59:23 +0100 Subject: [PATCH 1/2] fix: merge conflicts --- src/components/Editor.vue | 7 ++ src/components/Editor/RightSideActions.vue | 126 +++++++++++++++++++++ src/components/Editor/SessionList.vue | 3 +- src/components/Editor/Status.vue | 6 - src/components/Menu/ActionEntry.scss | 13 ++- src/components/Menu/MenuBar.vue | 45 ++++++-- src/components/ViewerComponent.vue | 5 + src/helpers/files.js | 12 +- src/helpers/index.js | 8 ++ 9 files changed, 207 insertions(+), 18 deletions(-) create mode 100644 src/components/Editor/RightSideActions.vue diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 8a742cabba4..32c2fd03330 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -118,6 +118,7 @@ import ContentContainer from './Editor/ContentContainer.vue' import Status from './Editor/Status.vue' import MainContainer from './Editor/MainContainer.vue' import Wrapper from './Editor/Wrapper.vue' +import RightSideActions from './Editor/RightSideActions.vue' const EDITOR_PUSH_DEBOUNCE = 200 @@ -133,6 +134,7 @@ export default { Reader: () => import(/* webpackChunkName: "editor" */'./Reader.vue'), Status, CollisionResolveDialog: () => import(/* webpackChunkName: "editor" */'./CollisionResolveDialog.vue'), + RightSideActions, }, mixins: [ isMobile, @@ -192,6 +194,10 @@ export default { type: Number, default: null, }, + basename: { + type: String, + default: null, + }, active: { type: Boolean, default: false, @@ -885,4 +891,5 @@ export default { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } + diff --git a/src/components/Editor/RightSideActions.vue b/src/components/Editor/RightSideActions.vue new file mode 100644 index 00000000000..9144e642ec9 --- /dev/null +++ b/src/components/Editor/RightSideActions.vue @@ -0,0 +1,126 @@ + + + + + + + diff --git a/src/components/Editor/SessionList.vue b/src/components/Editor/SessionList.vue index 82835706ed8..55ff0638857 100644 --- a/src/components/Editor/SessionList.vue +++ b/src/components/Editor/SessionList.vue @@ -151,7 +151,8 @@ export default { } .avatar-list { border: none; - background-color: var(--color-main-background); + /* background-color: var(--color-main-background); */ + background-color: unset; padding: 0; margin: 0; padding-left: 3px; diff --git a/src/components/Editor/Status.vue b/src/components/Editor/Status.vue index 526356abecb..e97138d6bdf 100644 --- a/src/components/Editor/Status.vue +++ b/src/components/Editor/Status.vue @@ -26,12 +26,6 @@ - -

- {{ t('text', 'Last saved') }}: {{ lastSavedString }} -

- -
diff --git a/src/components/Menu/ActionEntry.scss b/src/components/Menu/ActionEntry.scss index ece97514ec0..6bb7010bf42 100644 --- a/src/components/Menu/ActionEntry.scss +++ b/src/components/Menu/ActionEntry.scss @@ -1,3 +1,5 @@ +$text-menubar-action-white-color: white; + %text__is-active-item-btn { opacity: 1; background-color: var(--color-primary-light); @@ -14,7 +16,7 @@ border: 0; // opacity: 0.5; position: relative; - color: var(--color-main-text); + color: $text-menubar-action-white-color; background-color: transparent; vertical-align: top; box-shadow: none; @@ -67,7 +69,14 @@ .button-vue { svg { - fill: var(--color-main-text); + fill: $text-menubar-action-white-color; + } + &:hover, + &:focus, + &:active { + svg { + fill: var(--color-main-text); + } } } diff --git a/src/components/Menu/MenuBar.vue b/src/components/Menu/MenuBar.vue index 371bab8af75..edf9353c997 100644 --- a/src/components/Menu/MenuBar.vue +++ b/src/components/Menu/MenuBar.vue @@ -34,6 +34,12 @@ 'text-menubar--is-workspace': $isRichWorkspace }"> +
- + +