refactor: update navigation components and styles for improved consistency
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s

- Replaced legacy .capture-shell with .app-subnav-shell and integrated PageSectionNav for a unified navigation experience across multiple pages.
- Refactored AdminCatalogsPage, AdminMaturityModelsPage, ClubsPage, ExercisesListPage, MediaWikiImportPage, SkillsPage, and TrainingFrameworkProgramEditPage to utilize the new PageSectionNav component for tab navigation.
- Enhanced CSS styles for better responsiveness and visual clarity in navigation elements.
- Improved accessibility features with appropriate ARIA roles and attributes for better usability.
This commit is contained in:
Lars committed 2026-05-06 12:49:35 +02:00
1 parent 1e1fd80fb7
commit db8af53652
11 files changed
+243 -451

No files matched your search

+48 -167
View File
@@ -980,132 +980,15 @@ a.analysis-split__nav-item {
padding: 8px 10px;
}
/* Erfassung: Sub-Navigation — oben Chip-Zeile (alle Viewports); wie admin-page-subtabs */
.capture-shell {
/* Legacy .capture-shell entfällt — Sektionsnav: PageSectionNav → .admin-page-subtabs */
.app-subnav-shell {
width: 100%;
}
.capture-shell__layout {
display: flex;
flex-direction: column;
gap: 16px;
align-items: stretch;
}
.capture-shell__nav-wrap {
width: 100%;
.app-subnav-shell__main {
min-width: 0;
position: sticky;
top: var(--header-h);
z-index: 4;
background: var(--bg);
padding-bottom: 4px;
margin-bottom: 0;
border-bottom: 1px solid var(--border);
}
.capture-shell__nav {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 6px;
overflow-x: auto;
padding-bottom: 6px;
-ms-overflow-style: none;
scrollbar-width: none;
}
.capture-shell__nav::-webkit-scrollbar {
display: none;
}
.capture-shell__nav-item {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 12px;
border-radius: 20px;
border: 1.5px solid var(--border2);
background: var(--surface);
color: var(--text2);
font-family: var(--font);
font-size: 13px;
font-weight: 500;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
box-sizing: border-box;
}
.capture-shell__nav-item:hover {
border-color: var(--accent);
color: var(--text1);
}
.capture-shell__nav-item--active {
border-color: var(--accent);
background: var(--accent);
color: white;
}
.capture-shell__nav-item--active:hover {
color: white;
}
.capture-shell__nav-item--highlight:not(.capture-shell__nav-item--active) {
border-color: #7f77dd88;
background: #7f77dd14;
}
.capture-shell__nav-icon {
font-size: 15px;
line-height: 1;
}
.capture-shell__nav-label {
line-height: 1.2;
}
.capture-shell__main {
min-width: 0;
flex: 1;
}
@media (min-width: 1024px) {
.capture-shell__layout {
gap: 20px;
}
.capture-shell__nav-wrap {
top: var(--header-h);
padding-top: 2px;
padding-bottom: 10px;
}
.capture-shell__nav {
flex-wrap: wrap;
overflow-x: visible;
padding-bottom: 0;
gap: 8px;
}
.capture-shell__nav-item {
padding: 9px 14px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
}
}
button.capture-shell__nav-item {
font-family: inherit;
text-align: left;
-webkit-tap-highlight-color: transparent;
}
.capture-shell__nav-item svg.capture-shell__nav-icon {
flex-shrink: 0;
}
/* Einstellungen: gleiche Split-Struktur wie Analyse/Admin */
@@ -1262,46 +1145,6 @@ button.capture-shell__nav-item {
border-radius: 7px;
}
/* Capture-Shell / AppSubnavShell: kompakte Chips + Scroll-Snap */
.capture-shell__layout {
gap: 10px;
}
.capture-shell__nav-wrap {
width: 100%;
max-width: none;
margin-left: calc(-1 * max(12px, env(safe-area-inset-left, 0px)));
margin-right: calc(-1 * max(12px, env(safe-area-inset-right, 0px)));
padding-left: max(12px, env(safe-area-inset-left, 0px));
padding-right: max(12px, env(safe-area-inset-right, 0px));
box-sizing: border-box;
}
.capture-shell__nav {
gap: 5px;
padding-bottom: 4px;
scroll-snap-type: x proximity;
scroll-padding-inline: max(12px, env(safe-area-inset-left, 0px));
}
.capture-shell__nav-item {
padding: 6px 11px;
min-height: 36px;
font-size: 12px;
font-weight: 600;
gap: 5px;
border-radius: 999px;
border-width: 1px;
scroll-snap-align: start;
box-sizing: border-box;
}
.capture-shell__nav-item svg {
width: 15px !important;
height: 15px !important;
}
/* Admin-Seitenleiste oben: dieselbe Chip-Idee wie Subnav */
.admin-top-nav {
flex-wrap: nowrap;
overflow-x: auto;
@@ -1391,7 +1234,7 @@ button.capture-shell__nav-item {
gap: 6px;
}
.framework-edit__tabbar .planning-segment-group__btn {
.framework-edit__tabbar .admin-page-subtabs__btn {
padding: 6px 8px;
font-size: 11px;
line-height: 1.25;
@@ -1518,12 +1361,11 @@ button.capture-shell__nav-item {
/* ---------- Navigations-Ebenen (Kurzreferenz) ----------
* Hauptbereiche: Bottom-Nav / App-Header.
* Sektionsumschalter auf einer Seite (2–n Einträge): horizontale Chip-Zeile oben —
* • AppSubnavShell → .capture-shell (sticky unter dem Header, Wrap auf großen Screens)
* • viele flache Tabs (z. B. Stammdaten) → .admin-page-subtabs (gleiche Chip-Idee, Edge-Scroll mobil)
* Sektionsumschalter auf einer Seite: PageSectionNav → .admin-page-subtabs (Chips, mobil Edge-Scroll).
* AppSubnavShell = PageSectionNav + Inhalt (z. B. Hierarchie-Admin).
* Wechsel zwischen Admin-Seiten → .admin-top-nav
* „Sub-Sub“ (dritte Ebene, z. B. Editor-Spalten): bewusst in jeweiligen Feature-Layouts (Seitenleiste / Panel).
* Karten-Raster: .card-grid oder Klassen mit *list-grid* / *slots-board* / .dashboard-training-grid — dort kein .card+.card-Abstand (nur gap).
* „Sub-Sub“ (dritte Ebene): Feature-Layouts (Rahmen-Editor, Slots).
* Karten-Raster: .card-grid / *list-grid* / *slots-board* — nur gap, kein .card+.card.
* ---------- */
/* Admin-Kataloge: Seite „Stammdaten“ — viele Unter-Tabs, Chip-Scroll */
@@ -1559,6 +1401,19 @@ button.capture-shell__nav-item {
color: var(--text2);
transition: background 0.12s, color 0.12s, border-color 0.12s;
-webkit-tap-highlight-color: transparent;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.admin-page-subtabs__btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.admin-page-subtabs__btn:disabled:hover {
border-color: var(--border2);
color: var(--text2);
background: var(--surface2);
}
.admin-page-subtabs__btn:hover {
border-color: var(--accent);
@@ -1578,6 +1433,31 @@ button.capture-shell__nav-item {
font-size: 13px;
padding: 9px 15px;
}
.page-section-nav--wrap.admin-page-subtabs {
flex-wrap: wrap;
}
}
.page-section-nav__icon {
flex-shrink: 0;
}
/* Eingebettet in z. B. framework-edit__tabbar — keine zweite Unterlinie */
.page-section-nav--embedded.admin-page-subtabs {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
flex: 1;
min-width: 0;
}
/* Inline neben Labeln (Planung: Ansicht / Einblenden) */
.page-section-nav--inline.admin-page-subtabs {
display: inline-flex;
width: auto;
max-width: 100%;
margin-bottom: 0;
flex: 0 1 auto;
border-bottom: none;
padding-bottom: 0;
}
/* Admin Hierarchy & Catalog Section (Komponenten) */
@@ -4145,7 +4025,8 @@ button.capture-shell__nav-item {
.framework-edit__tabbar::-webkit-scrollbar {
display: none;
}
.framework-edit__tabbar .planning-segment-group {
.framework-edit__tabbar .admin-page-subtabs,
.framework-edit__tabbar .page-section-nav {
flex: 1;
min-width: 0;
}