Skip to content

Commit

Permalink
Merge pull request #12 from binary-butterfly/fix-overflow
Browse files Browse the repository at this point in the history
Fix card overflow
  • Loading branch information
DysphoricUnicorn authored Jan 17, 2022
2 parents c534cee + 1d3f6ec commit 2ba9893
Show file tree
Hide file tree
Showing 5 changed files with 1,310 additions and 1,294 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
Loading

0 comments on commit 2ba9893

Please sign in to comment.