mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #1452 from Human-Connection/separate-text-at-words
Use hyphens to separate words properly
This commit is contained in:
commit
649c51c705
@ -169,3 +169,9 @@ hr {
|
||||
.v-popover.open .trigger a {
|
||||
color: $text-color-link-active;
|
||||
}
|
||||
|
||||
.hyphenate-text {
|
||||
hyphens: auto;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
@ -20,12 +20,12 @@
|
||||
</div>
|
||||
<ds-space margin-bottom="small" />
|
||||
<!-- Post Title -->
|
||||
<ds-heading tag="h3" no-margin>{{ post.title }}</ds-heading>
|
||||
<ds-heading tag="h3" no-margin class="hyphenate-text">{{ post.title }}</ds-heading>
|
||||
<ds-space margin-bottom="small" />
|
||||
<!-- Post Content Excerpt -->
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<!-- TODO: replace editor content with tiptap render view -->
|
||||
<div class="hc-editor-content" v-html="excerpt" />
|
||||
<div class="hc-editor-content hyphenate-text" v-html="excerpt" />
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
<!-- Footer o the Post -->
|
||||
<template slot="footer">
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
</div>
|
||||
</ds-container>
|
||||
</div>
|
||||
<ds-container style="word-break: break-all">
|
||||
<ds-container>
|
||||
<div class="main-container">
|
||||
<nuxt />
|
||||
</div>
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
/>
|
||||
</client-only>
|
||||
<ds-space margin-bottom="small" />
|
||||
<ds-heading tag="h3" no-margin>{{ post.title }}</ds-heading>
|
||||
<ds-heading tag="h3" no-margin class="hyphenate-text">{{ post.title }}</ds-heading>
|
||||
<ds-space margin-bottom="small" />
|
||||
<content-viewer class="content" :content="post.content" />
|
||||
<content-viewer class="content hyphenate-text" :content="post.content" />
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
<ds-space margin="xx-large" />
|
||||
<!-- Categories -->
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
<template v-if="user.about">
|
||||
<hr />
|
||||
<ds-space margin-top="small" margin-bottom="small">
|
||||
<ds-text color="soft" size="small">{{ user.about }}</ds-text>
|
||||
<ds-text color="soft" size="small" class="hyphenate-text">{{ user.about }}</ds-text>
|
||||
</ds-space>
|
||||
</template>
|
||||
</ds-card>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user