From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 943E71FF0E5 for ; Wed, 12 Aug 2026 12:33:58 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 706B321581; Wed, 12 Aug 2026 12:33:58 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit-assets] calendar grid: add `pwt-calendar-hide-weekends` class Date: Wed, 12 Aug 2026 12:32:48 +0200 Message-ID: <20260812103354.1734504-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.993 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: NFT4SQ3WP2JELGDS6ECVAZY5NQLDUNKV X-Message-ID-Hash: NFT4SQ3WP2JELGDS6ECVAZY5NQLDUNKV X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: necessary for the hide_weekends flag of the calendar grid, since we need to overwrite the number of grid columns. Signed-off-by: Dominik Csapak --- this is also necessary for https://lore.proxmox.com/yew-devel/20260812103115.1710697-1-d.csapak@proxmox.com/T/#u forgot to send it as a series, will do so if a v2 is necessary. scss/_calendar_grid.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scss/_calendar_grid.scss b/scss/_calendar_grid.scss index 79dfdcc..5522d5f 100644 --- a/scss/_calendar_grid.scss +++ b/scss/_calendar_grid.scss @@ -11,6 +11,8 @@ /// height; its grid then slices evenly instead of sizing on content. /// - `pwt-calendar-grid` / `-grid-header` - the seven-column day grid and its /// weekday-label row; `pwt-calendar-weekday` is one header label. +/// - `pwt-calendar-hide-weekends` - the root when the widget drops Saturday and +/// Sunday (`hide_weekends`); both grids then narrow to five columns. /// - `pwt-calendar-day` - one day cell; `-outside` (not the anchored month), /// `-today` and `-weekend` tint or mark it. `pwt-calendar-daynum` is the /// day number. @@ -68,6 +70,13 @@ width: 100%; } +// The working week: the widget emits no cell at all for Saturday and Sunday, so +// both grids drop to five columns and the remaining days share the full width. +.pwt-calendar-hide-weekends .pwt-calendar-grid, +.pwt-calendar-hide-weekends .pwt-calendar-grid-header { + grid-template-columns: repeat(5, minmax(0, 1fr)); +} + .pwt-calendar-grid-header { gap: 0; } -- 2.47.3