From 0ab8ecb7980be7b963e89b52e721ad4b954aa4f3 Mon Sep 17 00:00:00 2001
From: bes-r <27369668+bes-r@users.noreply.github.com>
Date: Fri, 19 Jun 2026 23:37:26 +0200
Subject: [PATCH] view-opties als subtiele icoonknopjes (dagen/vakkleur/print)
---
frontend/src/pages.jsx | 16 ++++++++--------
frontend/src/styles.css | 6 ++++++
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/frontend/src/pages.jsx b/frontend/src/pages.jsx
index 05b284b..019db4a 100644
--- a/frontend/src/pages.jsx
+++ b/frontend/src/pages.jsx
@@ -2498,13 +2498,11 @@ export function RoosterScherm({ mode }) {
)}
{schooljaar && (edit ? tab === "week" : true) && (
-
- )}
- {schooljaar && (edit ? tab === "week" : true) && (
-
- )}
- {printAan && schooljaar && (edit ? tab === "week" : true) && (
-
+
+
+
+ {printAan && }
+
)}
@@ -2976,7 +2974,9 @@ export function PeriodeRoosterPage() {
{conflictInfo.meldingen.length ? `⚠ ${conflictInfo.meldingen.length} conflict(en)` : "✓ geen conflicten"}
-
+
+
+
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 96fb6db..91f68c0 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -102,6 +102,12 @@ input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color:
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.danger { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.btn.danger:hover { background: #fecaca; }
+
+/* Subtiele weergave-opties (kleine icoonknopjes, rechts in de balk) */
+.weergave-opties { margin-left: auto; display: inline-flex; gap: 4px; }
+.icon-toggle { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; font-size: 16px; line-height: 1; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
+.icon-toggle:hover { background: var(--bg); color: var(--ink); }
+.icon-toggle.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.05); }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 2px 4px; font: inherit; }