From 1bfd4caeda1d00824ed0d3ffc8b1b04c22be126b Mon Sep 17 00:00:00 2001 From: Jonathan Gruber Date: Fri, 24 Nov 2023 20:03:14 +0100 Subject: [PATCH] Fix calendar width --- package.json | 2 +- src/component/styles.module.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 287e0a9..c8a282e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-activity-calendar", - "version": "2.1.8", + "version": "2.1.9", "description": " A React component to display activity data in calendar", "author": "Jonathan Gruber ", "license": "MIT", diff --git a/src/component/styles.module.css b/src/component/styles.module.css index 4da9c68..cc2f2f4 100644 --- a/src/component/styles.module.css +++ b/src/component/styles.module.css @@ -1,4 +1,5 @@ .container { + width: max-content; /* Calendar should not grow */ max-width: 100%; /* Do not remove - flexbox parents */ display: flex; flex-direction: column;