Conversation
Add CSS rules to popup.css so that long domain names are truncated with an ellipsis and the Supprimer button always remains visible. - li > span: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 - li > button: flex-shrink: 0 Co-authored-by: ormidales <46538211+ormidales@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent long exception domain names from overflowing the popup UI by truncating them with an ellipsis so the “Supprimer” button remains accessible.
Changes:
- Add
li > spanCSS to clamp domain text to one line and truncate withtext-overflow: ellipsis(includingmin-width: 0for flex shrink). - Add
li > button { flex-shrink: 0; }to keep the delete button from shrinking.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| li > button { | ||
| flex-shrink: 0; | ||
| } |
There was a problem hiding this comment.
li > button { flex-shrink: 0; } interacts badly with the existing global button { width: 100%; } rule in this same stylesheet: the “Supprimer” button inside list items will try to stay full-width and the domain text may collapse to ~0 width (so ellipsis never appears), or the row will overflow. Fix by overriding the list-item button sizing (e.g., set li > button width to auto and remove the global margins), or by scoping the global button { width: 100% } rule to only the top-level action buttons (#add-domain/#clear-domains).
Long domain names in the whitelist overflow their container, pushing the "Supprimer" button out of the visible popup area and making it inaccessible.
Changes
popup.css— two new targeted rules:li > span: truncates domain text withtext-overflow: ellipsis;min-width: 0is required to allow the flex item to shrink below its intrinsic content widthli > button:flex-shrink: 0keeps the delete button at its natural width regardless of sibling sizeOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.