Skip to content

Commit

Permalink
fix: change schema name word breaking to anywhere (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin authored Sep 4, 2023
1 parent cbbf569 commit 5be6cff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/src/components/Schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Schema: React.FunctionComponent<Props> = ({
const styledSchemaName = isProperty ? 'italic' : '';
const renderedSchemaName =
typeof schemaName === 'string' ? (
<span className={`break-words text-sm ${styledSchemaName}`}>
<span className={`break-anywhere text-sm ${styledSchemaName}`}>
{schemaName}
</span>
) : (
Expand Down Expand Up @@ -106,7 +106,9 @@ export const Schema: React.FunctionComponent<Props> = ({
</>
) : (
<span
className={`break-words text-sm ${isProperty ? 'italic' : ''}`}
className={`break-anywhere text-sm ${
isProperty ? 'italic' : ''
}`}
>
{schemaName}
</span>
Expand Down
6 changes: 6 additions & 0 deletions library/src/styles/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@
@apply whitespace-pre-wrap;
}
}

@layer utilities {
.break-anywhere {
overflow-wrap: anywhere;
}
}

0 comments on commit 5be6cff

Please sign in to comment.