fix(admin): Fach-Sidebar bricht Layout - explizite Flex-Breite statt minWidth
Sidebar wuchs auf fast volle Containerbreite statt schmal zu bleiben (Screen- shot-Fund). flex:"0 0 12rem" + explizite width statt nur minWidth, position: sticky entfernt (unklarer Faktor, nicht essentiell). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
@@ -187,10 +187,10 @@ export function ObjektPositionenPanel({ objektId, vorlageId, materialien, onFehl
|
||||
{positionen.length === 0 && <p className="text-muted">Keine Positionen in diesem Objekt.</p>}
|
||||
|
||||
{positionen.length > 0 && (
|
||||
<div className="row" style={{ alignItems: "flex-start", gap: "1.25rem" }}>
|
||||
<div style={{ display: "flex", flexDirection: "row", alignItems: "flex-start", gap: "1.25rem" }}>
|
||||
<nav
|
||||
className="card"
|
||||
style={{ minWidth: "11rem", flexShrink: 0, padding: "0.5rem", position: "sticky", top: "0.5rem" }}
|
||||
style={{ flex: "0 0 12rem", width: "12rem", boxSizing: "border-box", padding: "0.5rem" }}
|
||||
>
|
||||
<button
|
||||
className={aktivesFach === null ? "btn btn-primary btn-block" : "btn btn-secondary btn-block"}
|
||||
@@ -211,7 +211,7 @@ export function ObjektPositionenPanel({ objektId, vorlageId, materialien, onFehl
|
||||
))}
|
||||
</nav>
|
||||
|
||||
<div style={{ flex: 1, minWidth: 0 }}>
|
||||
<div style={{ flex: "1 1 0%", minWidth: 0 }}>
|
||||
<ul className="card-list">
|
||||
{sichtbarePositionen.map((p) => {
|
||||
const typ = materialtyp(p.material_id);
|
||||
|
||||
Reference in New Issue
Block a user