diff --git a/packages/presentation/lang/en.json b/packages/presentation/lang/en.json index 91446c56592..4a22045f4c2 100644 --- a/packages/presentation/lang/en.json +++ b/packages/presentation/lang/en.json @@ -14,17 +14,16 @@ "AddSocialLinks": "Add social links", "EditSocialLinks": "Edit social links", "Change": "Change", - "Remove": "Remove", + "Remove": "Remove", "Search": "Search...", - "Spaces": "Spaces", - "CreateMore": "Create more", + "Spaces": "Spaces", "NumberSpaces": "{count, plural, =0 {In} =1 {In 1 place} other {In # places}}", "InThis": "In this {space}", "NoMatchesInThis": "No matches in this {space}", "NoMatchesFound": "No matches found", "NotInThis": "Not in this {space}", "Add": "Add", - "Edit": "Edit", + "Edit": "Edit", "DocumentPreview": "Preview", "MakePrivate": "Make private", "MakePrivateDescription": "Only members can see it" diff --git a/packages/presentation/lang/ru.json b/packages/presentation/lang/ru.json index 346ee9e09c5..2bf9f0718af 100644 --- a/packages/presentation/lang/ru.json +++ b/packages/presentation/lang/ru.json @@ -16,8 +16,7 @@ "Change": "Изменить", "Remove": "Удалить", "Search": "Поиск...", - "Spaces": "Пространства", - "CreateMore": "Создать еще", + "Spaces": "Пространства", "NumberSpaces": "{count, plural, =0 {В} =1 {В 1 месте} other {В # местах}}", "InThis": "В этом {space}", "NoMatchesInThis": "В этом {space} совпадения не обнаружены", diff --git a/packages/presentation/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte index bc406f2c0a1..893bec0ac43 100644 --- a/packages/presentation/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -15,7 +15,7 @@ --> diff --git a/packages/presentation/src/plugin.ts b/packages/presentation/src/plugin.ts index 1d885c41869..4b876c7c1a3 100644 --- a/packages/presentation/src/plugin.ts +++ b/packages/presentation/src/plugin.ts @@ -46,7 +46,6 @@ export default plugin(presentationId, { Remove: '' as IntlString, Search: '' as IntlString, Spaces: '' as IntlString, - CreateMore: '' as IntlString, NumberMembers: '' as IntlString, NumberSpaces: '' as IntlString, InThis: '' as IntlString, diff --git a/packages/text-editor/src/components/CollaborationDiffViewer.svelte b/packages/text-editor/src/components/CollaborationDiffViewer.svelte index f4cb899a0ba..147c80c60da 100644 --- a/packages/text-editor/src/components/CollaborationDiffViewer.svelte +++ b/packages/text-editor/src/components/CollaborationDiffViewer.svelte @@ -130,7 +130,7 @@ max-height: inherit !important; outline: none; line-height: 150%; - color: var(--accent-color); + color: var(--theme-caption-color); p:not(:last-child) { margin-block-end: 1em; @@ -148,10 +148,13 @@ p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; - color: var(--dark-color); + color: var(--theme-halfcontent-color); pointer-events: none; height: 0; } + &:focus-within p.is-editor-empty:first-child::before { + color: var(--theme-trans-color); + } &::-webkit-scrollbar-thumb { background-color: var(--scrollbar-bar-color); @@ -166,14 +169,6 @@ margin: 0; } } - /* Placeholder (at the top) */ - .ProseMirror p.is-editor-empty:first-child::before { - color: #adb5bd; - content: attr(data-placeholder); - float: left; - height: 0; - pointer-events: none; - } .lint-icon { display: inline-block; @@ -227,7 +222,7 @@ } .code-block { - border: 1px solid var(--divider-color); + border: 1px solid var(--theme-divider-color); border-radius: 4px; padding: 0.5rem; } diff --git a/packages/text-editor/src/components/StyledTextArea.svelte b/packages/text-editor/src/components/StyledTextArea.svelte index 2e78790cdb5..139fb9d594c 100644 --- a/packages/text-editor/src/components/StyledTextArea.svelte +++ b/packages/text-editor/src/components/StyledTextArea.svelte @@ -12,7 +12,7 @@ export let showButtons = true export let buttonSize: IconSize = 'small' export let focus = false - export let emphasized: boolean = false + export let kind: 'normal' | 'emphasized' | 'indented' = 'normal' export let isScrollable: boolean = false export let maxHeight: 'max' | 'card' | 'limited' | string | undefined = undefined export let required = false @@ -49,8 +49,9 @@