diff --git a/static/css/daw.css b/static/css/daw.css index 0a034dda..affda047 100644 --- a/static/css/daw.css +++ b/static/css/daw.css @@ -183,6 +183,29 @@ input, textarea { font-family: inherit; } } .daw-url-zone.has-file #url { display: none; } +/* Why a dropped file was refused, said in the box it was aimed at. + The full error panel is for a job that failed: it takes a region and carries + a retry button, and a file declined before anything started has nothing to + retry. Sits where the input text does, and hides it, so the box says one + thing at a time (#584). */ +.url-drop-error { + flex: 1; + min-width: 0; + color: var(--danger); + font-size: 13px; + line-height: 1.25; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* A plain class, toggled from JS alongside the message. + `:has()` reads better here, and a sibling combinator cannot work at all + because the message follows the input in the markup. But this ships in three + webviews, and the oldest of them is the one that matters: WebKitGTK only + grew :has() in 2.38, and Linux is where this bug was reported from. A class + costs one line in the handler and works in every engine. */ +.daw-url-zone.has-drop-error #url { display: none; } + /* Composer vertical divider */ .daw-composer-sep { width: 1px; diff --git a/static/index.html b/static/index.html index 805db14a..d7862198 100644 --- a/static/index.html +++ b/static/index.html @@ -50,6 +50,11 @@ spellcheck="false" autocomplete="off" /> + +