diff --git a/src/gui/components/_legacy.py b/src/gui/components/_legacy.py index 93323cb..6422a3b 100644 --- a/src/gui/components/_legacy.py +++ b/src/gui/components/_legacy.py @@ -346,6 +346,15 @@ body, .stApp { border: 1px solid var(--dt-border) !important; border-radius: var(--dt-r-sm) !important; } +/* Hide Streamlit's built-in compact file-chip row once files exist — + the home page renders its own canonical "Uploaded files" list with + a Remove button beneath the uploader, so the chip row is redundant + and visually doubles up on filenames. The dropzone's borderless + ``+`` button is left in place as the "add more files" affordance. + First-child wrapper of ``stFileChips`` holds the chip flex container; + collapsing it lets the ``+`` button hug the dropzone's left edge. */ +[data-testid="stFileChip"] { display: none !important; } +[data-testid="stFileChips"] > div:first-child { display: none !important; } /* ---------- Expanders + bordered containers → editorial cards ---------- */ [data-testid="stExpander"] details,