diff --git a/src/components/editor.vue b/src/components/editor.vue index 3e883825d..a0c1fcda9 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -4,102 +4,111 @@
-
-
- - - - - - - - - -
+
+
+
+
+ + + + + + + + +
-
- -
- {{ metadata.title }} - UUID: {{ uuid }} -
- -
- - - - - - + - - {{ $t('editor.unsavedChanges') }} - - - - - +

{{ $t('editor.unsavedChanges') }}

+
+ + + + + - - + + + + + {{ currentRoute.includes('#/en') ? 'Français' : 'English' }} + +
- - - - - - -
+ +
+
+
+ +
+ {{ metadata.title }} - - - - - - - - - + {{ $t('editor.uuid') }}: {{ uuid }} +
+ +
+ + + +
+ + + + + + + + +
+
+
+
- - @@ -357,6 +541,8 @@ export default class EditorV extends Vue { @Prop() saving!: boolean; @Prop() unsavedChanges!: boolean; + currentRoute = window.location.href; + // Form properties. uuid = ''; logoImage: undefined | File = undefined; @@ -602,11 +788,12 @@ window.addEventListener('resize', () => { margin: 0 auto; height: 100vh; - width: 100vw; + width: 100%; display: grid; grid-template-columns: 1fr; - grid-template-rows: auto 1fr; + grid-template-rows: auto auto 1fr; grid-template-areas: + 'header-upper' 'header' 'main'; } @@ -676,15 +863,19 @@ select:focus { padding: 0.25 0.25em !important; } +.editor-header-upper { + grid-area: 'header-upper'; + z-index: 150; +} + .editor-header { grid-area: header; - top: -1px; - padding-top: 9px; + z-index: 150; } .editor-body { grid-area: main; - overflow: hidden; + overflow: auto; } .fade-enter-active, @@ -721,8 +912,7 @@ select:focus { @media only screen and (min-width: 768px) { .editor-area { overflow-y: auto; - //height: calc(100vh - 80px); - height: calc(calc(var(--vh, 1vh) * 100) - 100px); + height: 100%; } } @@ -757,7 +947,6 @@ select:focus { display: none; position: absolute; background-color: white; - min-width: 110px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); z-index: 1; border: 1px solid lightgray; @@ -791,7 +980,7 @@ select:focus { } #sidebar-mobile { - z-index: 21; // should be on top + z-index: 201 !important; // should be on top height: 100%; width: 0; /* Initial width is 0 to be hidden */ max-width: 100%; @@ -810,7 +999,35 @@ select:focus { width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* Translucent black */ - z-index: 20; /* Ensure it appears just under the sidebar */ + z-index: 199; /* Ensure it appears just under the sidebar */ display: none; /* Initially hidden */ } + +.line-clamp-1 { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 1; +} + +.mobile-hidden-text { + width: auto; +} + +@media only screen and (min-width: 768px) { + #sidebar-desktop { + display: block !important; + } +} + +@media only screen and (max-width: 768px) { + .mobile-hidden-text { + width: 0 !important; + height: 0 !important; + padding: 0; + margin: 0; + overflow: hidden; + border: none; + } +} diff --git a/src/components/home.vue b/src/components/home.vue index 3fdb3c867..215646616 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -4,7 +4,7 @@

{{ $t('editor.respectTitle') }}

{{ `${currLang === 'en' ? 'Français' : 'English'}` }}
@@ -134,7 +134,7 @@ class="border-b border-solid" :class="idx === userStorylines.length - 1 ? 'border-black' : 'border-gray-200'" > -
UUID: {{ storyline.uuid }}
+
{{ $t('editor.uuid') }}: {{ storyline.uuid }}
{{ $t('editor.previousProducts.productInfo.title') + ': ' + storyline.titleEN }}
diff --git a/src/components/metadata-editor.vue b/src/components/metadata-editor.vue index 524db50a8..3407714d5 100644 --- a/src/components/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -17,9 +17,7 @@ >