feat: Add profile reference values summary endpoint and UI enhancements
- Introduced a new API endpoint for fetching a summary of profile reference values, providing the latest and previous entries for each reference type. - Updated ProfileReferenceValuesPage to display summary tiles with trend indicators for better user insights. - Enhanced CSS for responsive layout of reference value tiles, improving the overall user experience on different screen sizes. - Implemented trend calculation logic to visually represent changes between the latest and previous reference values.
This commit is contained in:
1 parent
c152721fe8
commit
3e916c082c
4 files changed
+296
-45
No files matched your search
@@ -557,6 +557,61 @@ a.analysis-split__nav-item {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Referenzwerte: Übersichtskacheln (responsive, bis 4 Spalten Desktop) */
|
||||
.ref-value-tiles-grid {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@media (min-width: 520px) {
|
||||
.ref-value-tiles-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.ref-value-tiles-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.ref-value-tiles-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.ref-value-tile {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 14px 14px 12px;
|
||||
text-align: left;
|
||||
font-family: var(--font);
|
||||
border-radius: 12px;
|
||||
border: 1.5px solid var(--border2);
|
||||
background: var(--surface);
|
||||
color: var(--text1);
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
.ref-value-tile:hover {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.ref-value-tile:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.ref-value-tile--active {
|
||||
border-color: var(--accent);
|
||||
background: var(--surface2);
|
||||
}
|
||||
|
||||
/* Admin: Split-Layout wie .analysis-split (nur Gruppen in der Nav) */
|
||||
.admin-shell {
|
||||
width: 100%;
|
||||
|
||||
Reference in new issue
Block a user