chore: update word-break style (#164)

This commit is contained in:
boojack
2022-08-23 23:23:20 +08:00
committed by GitHub
parent 2aed7c70aa
commit f784516470
3 changed files with 8 additions and 3 deletions

View File

@ -42,6 +42,11 @@ a {
@apply cursor-pointer text-blue-600 underline underline-offset-2 hover:opacity-80;
}
code,
pre {
@apply break-all whitespace-pre-wrap;
}
.btn {
@apply select-none cursor-pointer text-center;
}

View File

@ -1,10 +1,10 @@
@import "./mixin.less";
.memo-content-text {
@apply w-full whitespace-pre-wrap break-all text-base leading-7;
@apply w-full whitespace-pre-wrap break-words text-base leading-7;
> p {
@apply inline-block w-full h-auto mb-1 last:mb-0 text-base leading-7 whitespace-pre-wrap break-all;
@apply inline-block w-full h-auto mb-1 last:mb-0 text-base leading-7 whitespace-pre-wrap break-words;
}
.img {

View File

@ -19,7 +19,7 @@
> .toast-container {
> .content-text {
@apply text-sm whitespace-pre-wrap break-all leading-6 max-w-xs;
@apply text-sm whitespace-pre-wrap break-words leading-6 max-w-xs;
}
}
}