Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
7bdb8873
Commit
7bdb8873
authored
May 23, 2023
by
Alejandro Celaya
Committed by
Alejandro Celaya
Jun 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix word wrap in thread replies with very long words
parent
2112007f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
MarkdownView.tsx
src/sidebar/components/MarkdownView.tsx
+1
-1
Thread.tsx
src/sidebar/components/Thread.tsx
+1
-1
tailwind.config.mjs
tailwind.config.mjs
+5
-1
No files found.
src/sidebar/components/MarkdownView.tsx
View file @
7bdb8873
...
@@ -41,7 +41,7 @@ export default function MarkdownView({
...
@@ -41,7 +41,7 @@ export default function MarkdownView({
// some overflow calculations in the `Excerpt` element. This could be worth
// some overflow calculations in the `Excerpt` element. This could be worth
// a review in the future.
// a review in the future.
return
(
return
(
<
div
className=
"w-full break-
words
cursor-text"
>
<
div
className=
"w-full break-
anywhere
cursor-text"
>
<
StyledText
>
<
StyledText
>
<
div
<
div
className=
{
classes
}
className=
{
classes
}
...
...
src/sidebar/components/Thread.tsx
View file @
7bdb8873
...
@@ -171,7 +171,7 @@ function Thread({ thread, threadsService }: ThreadProps) {
...
@@ -171,7 +171,7 @@ function Thread({ thread, threadsService }: ThreadProps) {
className=
{
classnames
(
className=
{
classnames
(
// Set a max-width to ensure that annotation content does not exceed
// Set a max-width to ensure that annotation content does not exceed
// the width of the container
// the width of the container
'grow max-w-full'
'grow max-w-full
min-w-0
'
)
}
)
}
data
-
testid=
"thread-content"
data
-
testid=
"thread-content"
>
>
...
...
tailwind.config.mjs
View file @
7bdb8873
...
@@ -222,14 +222,18 @@ export default {
...
@@ -222,14 +222,18 @@ export default {
addVariant
(
'theme-clean'
,
'.theme-clean &'
);
addVariant
(
'theme-clean'
,
'.theme-clean &'
);
}),
}),
plugin
(({
addComponents
,
addUtilities
})
=>
{
plugin
(({
addComponents
,
addUtilities
})
=>
{
// Tailwind does not provide hyphens-related utility classes.
addUtilities
({
addUtilities
({
// Tailwind does not provide hyphens-related utility classes.
'.hyphens-none'
:
{
'.hyphens-none'
:
{
hyphens
:
'none'
,
hyphens
:
'none'
,
},
},
'.hyphens-auto'
:
{
'.hyphens-auto'
:
{
hyphens
:
'auto'
,
hyphens
:
'auto'
,
},
},
// Tailwind does not provide this specific break utility: https://tailwindcss.com/docs/word-break
'.break-anywhere'
:
{
'overflow-wrap'
:
'anywhere'
}
});
});
addComponents
({
addComponents
({
// Add a custom class to set all properties to initial values. Used
// Add a custom class to set all properties to initial values. Used
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment