fix repertoire AP/OR/FI columns and main scroll containment

- repertoire-index.php: add $colHasMatches per-column guard.
  Entries in a column are only faded when that column has at least one
  matched entry in the current result set. When a dimension has no
  matched entries (e.g. no thesis has orientation_id set yet), the
  entire column stays fully interactive — all values remain clickable.
  This fixes: empty columns, forced single-select, cascade fading.

- Database.php: revert allAp/allOr/allFi to full lookup-table queries
  so all known values are always shown (not just ones linked to theses).

- common.css: body is now a flex column; main gets flex:1 + min-height:0;
  header-search-wrap gets flex-shrink:0; duplicate html/body blocks merged.
- public.css: removed redundant top-level main block; home-main gets min-height:0.
- repertoire.css: search-main gets min-height:0 for proper flex scroll.
This commit is contained in:
Pontoporeia
2026-04-21 19:05:18 +02:00
parent 78449afe64
commit 73fdda4a7f
8 changed files with 38 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
body {
@@ -22,13 +23,8 @@ body {
rgba(0, 0, 0, 0) 92%,
rgba(149, 87, 181, 1) 100%
);
}
html,
body {
margin: 0;
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}
a {
@@ -132,7 +128,8 @@ body > header nav ul a[aria-current="page"] {
}
main {
overflow: scroll;
flex: 1;
min-height: 0;
}
/* ============================================================
@@ -140,8 +137,8 @@ main {
============================================================ */
.header-search-wrap {
padding: 0 0;
flex-shrink: 0;
background-color: var(--gradient-4);
background: linear-gradient(180deg, var(--gradient-4) 0%, #ffffffee 100%);
}

View File

@@ -4,16 +4,10 @@
@import url("./variables.css");
main {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow: hidden;
}
/* Cards grid — scrollable main area */
.home-main {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 0;

View File

@@ -6,6 +6,7 @@
.search-main {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}