Skip to content

Commit

Permalink
Fix card titles breaking out of their containers
Browse files Browse the repository at this point in the history
Also increase margins between links
  • Loading branch information
DysphoricUnicorn committed Jan 17, 2022
1 parent c534cee commit c575e4c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Root = () => {
points: [
{
position: {latitude: 47.850670, longitude: 13.090983},
text: 'This is an example',
text: 'This is an example with very long text that will not overflow it\'s container banananananananananananananananananananananana',
additionalInfo: 'Sportplatz',
website: 'example.invalid.tld',
banana: true,
Expand Down
2 changes: 2 additions & 0 deletions assets/js/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ export const CardContent = styled.div`
border-radius: 0.25rem;
width: 100%;
text-align: left!important;
overflow-x: hidden;
overflow-wrap: anywhere;
`;
1 change: 1 addition & 0 deletions assets/js/components/PointCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Link = styled.a`
const SmallLink = styled(Link)`
line-height: 0.8rem;
font-size: 0.8rem !important;
margin-bottom: 0.25rem;
`;

const checkPointHours = (point) => {
Expand Down
2 changes: 1 addition & 1 deletion 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": "react-butterfly-map",
"version": "0.7.7",
"version": "0.7.8",
"license": "MIT",
"private": false,
"main": "dist/react-butterfly-map.min.js",
Expand Down

0 comments on commit c575e4c

Please sign in to comment.