Skip to content

Commit

Permalink
fix(website): Adjust break all to break word (#3342)
Browse files Browse the repository at this point in the history
* adjust break all to break word

* Update base.scss

* Automated code formatting

* Update DataUploadForm.tsx

---------

Co-authored-by: Loculus bot <[email protected]>
  • Loading branch information
theosanderson and Loculus bot authored Dec 3, 2024
1 parent a16a7c3 commit 193436a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CustomDisplayComponent: React.FC<Props> = ({ data, dataUseTermsHistory })

return (
<div className='whitespace-normal text-gray-600 break-inside-avoid'>
<div className='break-all whitespace-wrap'>
<div className='whitespace-wrap'>
{!customDisplay && <PlainValueDisplay value={value} />}
{customDisplay?.type === 'percentage' && typeof value === 'number' && `${(100 * value).toFixed(2)}%`}
{customDisplay?.type === 'badge' &&
Expand Down
3 changes: 0 additions & 3 deletions website/src/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ a {
text-decoration: red;
font-size: 24px;
font-weight: 600;
word-break: break-all;
}

.title {
color: theme('colors.main');
font-size: 24px;
font-weight: 600;
word-break: break-all;
}

.subtitle {
Expand Down Expand Up @@ -68,7 +66,6 @@ a {

.customTable {
display: table;
word-break: break-all;
border: none;
}
table,
Expand Down

0 comments on commit 193436a

Please sign in to comment.