Skip to content

Commit

Permalink
Merge pull request #132 from GetDKAN/table-width-fix
Browse files Browse the repository at this point in the history
WCMS-10130: Fix table styling on very small screens
  • Loading branch information
brdunfield authored Aug 3, 2023
2 parents 0ead67a + ec4c62a commit f5278d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@civicactions/cmsds-open-data-components",
"version": "2.0.6",
"version": "2.0.7",
"description": "Components for the open data catalog frontend using CMS Design System",
"main": "dist/main.js",
"source": "src/index.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
.dc-c-additional-info-table a {
word-break: break-all;
}

.ds-u-word-break-anywhere {
word-break: break-word;
overflow-wrap: anywhere;
}
2 changes: 1 addition & 1 deletion src/components/DatasetAdditionalInformation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DatasetAdditionalInformation = ({ datasetInfo, id, metadataMapping}) => {
{rows.map((r) => (
<TableRow key={`${r.label}_${id}`}>
<TableCell>{r.label}</TableCell>
<TableCell>{r.value}</TableCell>
<TableCell className="ds-u-word-break-anywhere">{r.value}</TableCell>
</TableRow>
))}
</TableBody>
Expand Down

0 comments on commit f5278d0

Please sign in to comment.