From 035458ed78cc314aab986821a7a23c6162f3c058 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 12 Jun 2024 09:53:22 -0700 Subject: [PATCH] Revert "fix: table styles" This reverts commit e900e0256bffcc09b7943ced6f48446cb25d0e40. --- package.json | 2 +- src/assets/styles/base/index.css | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 628b5762..f2593e88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.1.1", + "version": "19.1.0", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/assets/styles/base/index.css b/src/assets/styles/base/index.css index 79b2cc63..95ac1a55 100644 --- a/src/assets/styles/base/index.css +++ b/src/assets/styles/base/index.css @@ -215,7 +215,11 @@ hr { /* tables */ table { + display: block; + overflow-x: auto; + width: 100%; border: 1px solid var(--gray-light); + white-space: nowrap; } table, @@ -237,7 +241,12 @@ tr:not(:last-child) { th, td { padding: var(--sizing-sm); + min-width: max-content; + word-break: break-word; width: 100%; +} + +td { min-width: calc(var(--sizing-3xl) * 2); }