Change minor design and text issues

- Remove the split line under the last list item.
- Enter spaces.
- Partial swapping of upper and lower case letters.
This commit is contained in:
Wolfgang Huß 2021-07-12 16:43:37 +02:00
parent 77245dc82e
commit fdf14b2cfd
3 changed files with 41 additions and 35 deletions

View File

@ -15,9 +15,13 @@
<template #popover="" class="legend">
<div class="legend-container">
<div class="legend-header">{{ $t(`editor.legend.legendTitle`) }}</div>
<div class="legend-table" v-for="item in legenditems" :key="item.name">
<div
:class="['legend-table', index < legendItems.length - 1 && 'legend-table-split-line']"
v-for="(item, index) in legendItems"
:key="item.name"
>
<div>
<base-button size="small" circle ghost :icon="item.iconname" class="legend-icon">
<base-button size="small" circle ghost :icon="item.iconName" class="legend-icon">
<span v-if="item.label">{{ item.label }}</span>
</base-button>
<span>{{ $t(item.name) }}</span>
@ -43,18 +47,18 @@ export default {
},
data() {
return {
legenditems: [
{ iconname: 'bold', name: `editor.legend.bold`, shortcut: 'Ctrl+b' },
{ iconname: 'italic', name: `editor.legend.italic`, shortcut: 'Ctrl+i' },
{ iconname: 'underline', name: `editor.legend.underline`, shortcut: 'Ctrl+u' },
{ iconname: 'link', name: `editor.legend.link`, shortcut: '' },
{ iconname: 'paragraph', name: `editor.legend.paragraph`, shortcut: '' },
legendItems: [
{ iconName: 'bold', name: `editor.legend.bold`, shortcut: 'ctrl + b' },
{ iconName: 'italic', name: `editor.legend.italic`, shortcut: 'ctrl + i' },
{ iconName: 'underline', name: `editor.legend.underline`, shortcut: 'ctrl + u' },
{ iconName: 'link', name: `editor.legend.link`, shortcut: '' },
{ iconName: 'paragraph', name: `editor.legend.paragraph`, shortcut: '' },
{ label: 'H3', name: `editor.legend.heading3`, shortcut: '### + space' },
{ label: 'H4', name: `editor.legend.heading4`, shortcut: '#### + space' },
{ iconname: 'list-ul', name: `editor.legend.unorderedList`, shortcut: '* + space' },
{ iconname: 'list-ol', name: `editor.legend.orderedList`, shortcut: '1. + space' },
{ iconname: 'quote-right', name: `editor.legend.quote`, shortcut: '> + space' },
{ iconname: 'minus', name: `editor.legend.ruler`, shortcut: '---' },
{ iconName: 'list-ul', name: `editor.legend.unorderedList`, shortcut: '* + space' },
{ iconName: 'list-ol', name: `editor.legend.orderedList`, shortcut: '1. + space' },
{ iconName: 'quote-right', name: `editor.legend.quote`, shortcut: '> + space' },
{ iconName: 'minus', name: `editor.legend.ruler`, shortcut: '---' },
],
}
},
@ -91,9 +95,11 @@ export default {
display: grid;
align-items: center;
grid-template-columns: 1fr 1fr;
border-bottom: 0.5px solid grey;
padding: 0.2em;
}
.legend-table-split-line {
border-bottom: 0.5px solid grey;
}
.legend-table > div {
display: flex;

View File

@ -314,18 +314,18 @@
"noHashtagsFound": "No hashtags found"
},
"legend": {
"bold": "bold",
"heading3": "heading3",
"heading4": "heading4",
"italic": "italic",
"bold": "Bold",
"heading3": "Heading 3",
"heading4": "Heading 4",
"italic": "Italic",
"legendTitle": "Keyboard shortcuts and markdown code",
"link": "link",
"orderedList": "ordered list",
"paragraph": "paragraph",
"quote": "quote",
"ruler": "ruler",
"underline": "underline",
"unorderedList": "unordered list"
"link": "Link",
"orderedList": "Ordered list",
"paragraph": "Paragraph",
"quote": "Quote",
"ruler": "Ruler",
"underline": "Underline",
"unorderedList": "Unordered list"
},
"mention": {
"noUsersFound": "No users found"

View File

@ -261,18 +261,18 @@
"noHashtagsFound": "Хэштеги не найдены"
},
"legend": {
"bold": "полужирный",
"heading3": "заголовок 3",
"heading4": "заголовок 4",
"italic": "курсив",
"bold": "Полужирный",
"heading3": "Заголовок 3",
"heading4": "Заголовок 4",
"italic": "Курсив",
"legendTitle": "Клавиатурные сокращения и код разметки",
"link": "ссылка",
"orderedList": "нумерованный список",
"paragraph": "параграф",
"quote": "кавычки",
"ruler": "горизонтальная линия",
"underline": "подчеркнутый",
"unorderedList": "маркированный список"
"link": "Ссылка",
"orderedList": "Нумерованный список",
"paragraph": "Параграф",
"quote": "Кавычки",
"ruler": "Горизонтальная линия",
"underline": "Подчеркнутый",
"unorderedList": "Маркированный список"
},
"mention": {
"noUsersFound": "Пользователи не найдены"