Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
33b083c1
Unverified
Commit
33b083c1
authored
Mar 11, 2023
by
Nicolas Giard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: markdown editor UX improvements
parent
72eccb7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
EditorMarkdown.vue
ux/src/components/EditorMarkdown.vue
+17
-2
PageHeader.vue
ux/src/components/PageHeader.vue
+9
-0
en.json
ux/src/i18n/locales/en.json
+4
-1
No files found.
ux/src/components/EditorMarkdown.vue
View file @
33b083c1
...
...
@@ -119,7 +119,21 @@
textarea(ref='cmRef')
transition(name='editor-markdown-preview')
.editor-markdown-preview(v-if='state.previewShown')
.editor-markdown-preview-toolbar Render Preview
.editor-markdown-preview-toolbar
strong: em
{{
t
(
'editor.renderPreview'
)
}}
q-separator.q-ml-md.q-mr-sm(vertical, inset)
q-btn(
icon='mdi-arrow-vertical-lock'
padding='xs sm'
flat
)
q-tooltip(anchor='top middle' self='bottom middle')
{{
t
(
'editor.toggleScrollLock'
)
}}
q-btn(
icon='mdi-eye-off-outline'
padding='xs sm'
flat
)
q-tooltip(anchor='top middle' self='bottom middle')
{{
t
(
'editor.togglePreviewPane'
)
}}
.editor-markdown-preview-content.contents(ref='editorPreviewContainer')
div(
ref='editorPreview'
...
...
@@ -421,12 +435,13 @@ $editor-height-mobile: calc(100vh - 112px - 16px);
}
&
-toolbar
{
background-color
:
$primary
;
border-left
:
40px
solid
darken
(
$primary
,
5%
);
color
:
#FFF
;
height
:
32px
;
}
&
-sidebar
{
background-color
:
$dark-4
;
border-top
:
32px
solid
$primary
;
border-top
:
32px
solid
darken
(
$primary
,
10%
)
;
color
:
#FFF
;
width
:
56px
;
display
:
flex
;
...
...
ux/src/components/PageHeader.vue
View file @
33b083c1
...
...
@@ -104,6 +104,15 @@
aria-label='Print'
)
q-tooltip Print
q-btn.q-mr-sm.acrylic-btn(
v-if='editorStore.isActive'
icon='las la-question-circle'
flat
color='grey'
:href='siteStore.docsBase + `/editor/${editorStore.editor}`'
target='_blank'
type='a'
)
template(v-if='editorStore.isActive || editorStore.hasPendingChanges')
q-btn.acrylic-btn.q-mr-sm(
flat
...
...
ux/src/i18n/locales/en.json
View file @
33b083c1
...
...
@@ -1716,5 +1716,8 @@
"profile.cvdProtanopia"
:
"Protanopia"
,
"profile.cvdTritanopia"
:
"Tritanopia"
,
"profile.cvdDeuteranopia"
:
"Deuteranopia"
,
"profile.accessibility"
:
"Accessibility"
"profile.accessibility"
:
"Accessibility"
,
"editor.toggleScrollLock"
:
"Toggle Scroll Lock"
,
"editor.togglePreviewPane"
:
"Toggle Preview Pane"
,
"editor.renderPreview"
:
"Render Preview"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment