From 750a2f90eb8e57ae18e1056de2f70af7242da430 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 25 Nov 2024 17:09:08 +0100 Subject: [PATCH] feat(crabfit): Remove overzealous padding --- .../packages/crabfit-frontend/08-heatmap.patch | 12 ++++++++++++ .../crabfit/packages/crabfit-frontend/default.nix | 1 + 2 files changed, 13 insertions(+) create mode 100644 machines/nixos/web01/crabfit/packages/crabfit-frontend/08-heatmap.patch diff --git a/machines/nixos/web01/crabfit/packages/crabfit-frontend/08-heatmap.patch b/machines/nixos/web01/crabfit/packages/crabfit-frontend/08-heatmap.patch new file mode 100644 index 0000000..f8f8d46 --- /dev/null +++ b/machines/nixos/web01/crabfit/packages/crabfit-frontend/08-heatmap.patch @@ -0,0 +1,12 @@ +diff --git a/src/components/AvailabilityViewer/AvailabilityViewer.module.scss b/src/components/AvailabilityViewer/AvailabilityViewer.module.scss +index 0a05856..d1946f4 100644 +--- a/src/components/AvailabilityViewer/AvailabilityViewer.module.scss ++++ b/src/components/AvailabilityViewer/AvailabilityViewer.module.scss +@@ -4,7 +4,6 @@ + min-width: 100%; + align-items: flex-end; + justify-content: center; +- padding: 0 calc(calc(100% - 600px) / 2); + + @media (max-width: 660px) { + padding: 0 30px; diff --git a/machines/nixos/web01/crabfit/packages/crabfit-frontend/default.nix b/machines/nixos/web01/crabfit/packages/crabfit-frontend/default.nix index b4dffb9..2f6378b 100644 --- a/machines/nixos/web01/crabfit/packages/crabfit-frontend/default.nix +++ b/machines/nixos/web01/crabfit/packages/crabfit-frontend/default.nix @@ -32,6 +32,7 @@ stdenv.mkDerivation (finalAttrs: { ./05-dgnum.patch ./06-download.patch ./07-colormap.patch + ./08-heatmap.patch ]; offlineCache = fetchYarnDeps {