From bc825c16d74883ceaaa0cd8f94fe9da88128872d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Thu, 21 Sep 2023 15:04:12 +0200 Subject: [PATCH] Adjust topbar padding to be only on title --- client/web/compose/src/mixins/record.js | 9 +++------ lib/vue/src/components/navigation/CTopbar.vue | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/client/web/compose/src/mixins/record.js b/client/web/compose/src/mixins/record.js index edc488b06..8a8bbd99a 100644 --- a/client/web/compose/src/mixins/record.js +++ b/client/web/compose/src/mixins/record.js @@ -225,12 +225,9 @@ export default { if (this.record.valueErrors.set) { this.toastWarning(this.$t('notification:record.validationWarnings')) } else { - if (isNew) { - this.inCreating = false - this.inEditing = false - } else { - this.record = record - } + this.inCreating = false + this.inEditing = false + this.record = record this.$router.push({ name: route, params: { ...this.$route.params, recordID: record.recordID } }) } diff --git a/lib/vue/src/components/navigation/CTopbar.vue b/lib/vue/src/components/navigation/CTopbar.vue index d48592b86..f797c59f9 100644 --- a/lib/vue/src/components/navigation/CTopbar.vue +++ b/lib/vue/src/components/navigation/CTopbar.vue @@ -288,7 +288,6 @@ $nav-user-icon-size: 50px; width: 100vw; min-height: $header-height; background-color: #F9FAFB !important; - padding-left: calc(3.5rem + 6px); } .avatar { @@ -325,6 +324,7 @@ $nav-user-icon-size: 50px; display: flex; align-items: center; min-height: $header-height; + padding-left: calc(3.5rem + 6px); .vue-portal-target { display: -webkit-box; /* For Safari and old versions of Chrome */