From 14c842ff9d26979efe08faf82368b1e3fbff479f Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 22 Dec 2019 18:49:17 -0500 Subject: [PATCH] fix: rtl offset + list indent (#1326, #1327) --- client/components/common/nav-header.vue | 2 +- client/components/editor/editor-markdown.vue | 5 +- client/themes/default/components/page.vue | 4 +- client/themes/default/scss/app.scss | 62 ++++++++++++++++++-- 4 files changed, 65 insertions(+), 8 deletions(-) diff --git a/client/components/common/nav-header.vue b/client/components/common/nav-header.vue index 20b83789..61ab8125 100644 --- a/client/components/common/nav-header.vue +++ b/client/components/common/nav-header.vue @@ -18,7 +18,7 @@ ) v-layout(row) v-flex(xs6, md4) - v-toolbar.nav-header-inner.pl-3(color='black', dark, flat) + v-toolbar.nav-header-inner(color='black', dark, flat, :class='$vuetify.rtl ? `pr-3` : `pl-3`') v-avatar(tile, size='34', @click='goHome') v-img.org-logo(:src='logoUrl') //- v-menu(open-on-hover, offset-y, bottom, left, min-width='250', transition='slide-y-transition') diff --git a/client/components/editor/editor-markdown.vue b/client/components/editor/editor-markdown.vue index 3c07c69e..38134d82 100644 --- a/client/components/editor/editor-markdown.vue +++ b/client/components/editor/editor-markdown.vue @@ -183,6 +183,8 @@ import _ from 'lodash' import { get, sync } from 'vuex-pathify' import markdownHelp from './markdown/help.vue' +/* global siteConfig */ + // ======================================== // IMPORTS // ======================================== @@ -491,7 +493,8 @@ export default { }, viewportMargin: 50, inputStyle: 'contenteditable', - allowDropFileTypes: ['image/jpg', 'image/png', 'image/svg', 'image/jpeg', 'image/gif'] + allowDropFileTypes: ['image/jpg', 'image/png', 'image/svg', 'image/jpeg', 'image/gif'], + direction: siteConfig.rtl ? 'rtl' : 'ltr' }) this.cm.setValue(this.$store.get('editor/content')) this.cm.on('change', c => { diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index 05a94085..0e0328c4 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -1,5 +1,5 @@