Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/web-pkg/src/components/TextEditor/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
</template>

<script lang="ts">
import { computed, defineComponent, unref, PropType } from 'vue'
import { computed, defineComponent, PropType, unref } from 'vue'
import { Resource } from '@opencloud-eu/web-client'

import { config, MdEditor, MdPreview, XSSPlugin } from 'md-editor-v3'
import 'md-editor-v3/lib/style.css'

import { languageUserDefined, languages } from './l18n'
import { languages, languageUserDefined } from './l18n'

import { useGettext } from 'vue3-gettext'
import { useThemeStore } from '../../composables'
Expand Down Expand Up @@ -163,6 +163,10 @@ export default defineComponent({
.md-editor {
height: 100%;

&-preview > * {
word-break: break-word !important;
Comment on lines +166 to +167
Copy link

Copilot AI Jul 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Using !important should be avoided when possible as it makes CSS harder to maintain and override. Consider using more specific selectors or restructuring the CSS hierarchy to achieve the desired specificity without !important.

Suggested change
&-preview > * {
word-break: break-word !important;
#text-editor-container .md-editor-preview > * {
word-break: break-word;

Copilot uses AI. Check for mistakes.
}

&-code-head {
justify-content: end !important;
}
Expand Down
Loading