From 19186097d557de29ddec39e07783a3f368962718 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 2 Jun 2026 09:16:16 -0700 Subject: [PATCH] fix(ssr): stop content-card forcing always-on scrollbars; add tmp/ scratch dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit content-card used `overflow-scroll`, which renders scrollbar tracks even when the content fits — visible as superfluous bars around the admin chart cards. Switch to `overflow-auto` so scrollbars only appear when content genuinely overflows (e.g. wide data tables still scroll). Also add a gitignored ./tmp/ scratch directory (tracked via .gitkeep) and document in AGENTS.md that temp files belong there. Co-Authored-By: Claude Opus 4.8 --- .gitignore | 3 +++ AGENTS.md | 4 ++++ src/clj/auto_ap/ssr/components/card.clj | 2 +- tmp/.gitkeep | 0 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tmp/.gitkeep diff --git a/.gitignore b/.gitignore index 5c1c9908..0378b640 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ sysco-poller/**/*.csv .tmp/** playwright-report/** test-results/** +# Scratch dir for temp files (screenshots, logs, etc.); keep the dir, ignore contents +/tmp/* +!/tmp/.gitkeep diff --git a/AGENTS.md b/AGENTS.md index 1efab03e..9bb4fcbb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,9 @@ # Integreat Development Guide +## Temporary Files + +Write any temporary files (screenshots, scratch logs, generated artifacts, etc.) to the `./tmp/` directory at the repo root. Its contents are gitignored (only `.gitkeep` is tracked), so nothing there will be accidentally committed. Do not scatter temp files elsewhere in the repo or in the system `/tmp`. + ## Build & Run Commands ### Build diff --git a/src/clj/auto_ap/ssr/components/card.clj b/src/clj/auto_ap/ssr/components/card.clj index f13242ad..8224d781 100644 --- a/src/clj/auto_ap/ssr/components/card.clj +++ b/src/clj/auto_ap/ssr/components/card.clj @@ -14,5 +14,5 @@ [:section (merge params {:class (hh/add-class " py-3 sm:py-5" (:class params))}) [:div {:class (:max-w params "max-w-screen-2xl")} (into - [:div {:class "relative overflow-scroll shadow-md dark:bg-gray-800 sm:rounded-lg border-2 border-gray-200 dark:border-gray-900 bg-white"}] + [:div {:class "relative overflow-auto shadow-md dark:bg-gray-800 sm:rounded-lg border-2 border-gray-200 dark:border-gray-900 bg-white"}] children)]]) diff --git a/tmp/.gitkeep b/tmp/.gitkeep new file mode 100644 index 00000000..e69de29b