Skip to content

Keep Send/Append Image and the reference pulldown on one row - #431

Merged
lstein merged 1 commit into
masterfrom
lstein/fix/ref-target-same-row
Nov 13, 2026
Merged

lstein merged 1 commit into
masterfrom
lstein/fix/ref-target-same-row

Conversation

@lstein

@lstein lstein commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

In the metadata drawer, Send Image, Append Image and the "as a reference for" pulldown wrapped onto two lines whenever the drawer's max-width: 50vw was narrower than the row (~655px), i.e. in any window narrower than ~1300px.

CSS-only fix in metadata-drawer.css:

  • Above 768px, the row holding the pulldown doesn't wrap and its items don't shrink.
  • Above 768px, .banner-drawer-container gets min-width: min-content; since min-width beats max-width, the drawer grows past 50vw just enough to hold the row (655px in a 1024px window instead of 512px).
  • #descriptionText td uses overflow-wrap: anywhere so a long unbroken token (e.g. a URL in a prompt) can't inflate the drawer's min-content width. Header cells keep break-word so labels like "Model" don't break mid-word.
  • At ≤768px (phones) the layout is unchanged.

Testing

Measured in the real app with headless Chromium, master vs this branch:

Viewport master this branch
1920 one row one row
1280 / 1024 / 800 pulldown wraps one row, drawer 655px
600 / 390 wraps identical to master
  • A 400-char unbroken token in a prompt cell keeps the drawer at its normal width.
  • Label column widths ≥ master at all desktop widths.
  • Without InvokeAI configured the drawer width is unaffected.
  • npm run format:check passes.
  • Verified manually by the author.

🤖 Generated with Claude Code

In the metadata drawer, Send Image, Append Image and the "as a reference
for" pulldown wrapped onto two lines whenever the drawer's 50vw cap was
narrower than the row (any window below ~1300px).

Above phone widths the row no longer wraps, and the drawer gets
min-width: min-content so it grows past 50vw just enough to hold it.
Description value cells switch to overflow-wrap: anywhere so long
unbroken tokens (e.g. URLs in prompts) can't inflate that min-content;
header cells keep break-word so labels don't break mid-word. Phones
(<=768px) keep the previous wrapping layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lstein
lstein merged commit 9b9716d into master Nov 13, 2026
10 checks passed
@lstein
lstein deleted the lstein/fix/ref-target-same-row branch November 13, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant