You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature is currently broken. It was initially added because we hide this bar via CSS:
However now we have two reasons why this is not useful:
upload-button now also takes care of hiding the bar; i.e. the feature can be disabled altogether and the bar reappears
we now also offer a CSS field to restore the bar
Additionally:
We have a related feature that drops the Upload files button from file lists and does not add an alternative. Likewise, people can just upload files via drag-drop or disable the feature.
Therefore we can either:
👎 Keep the feature as JS, but not add the alternative button
👍 Drop the JS feature and just hide the bar via CSS (who doesn't want it can undo it easily in the custom CSS field)
who doesn't want it can undo it easily in the custom CSS field
How can I undo this? I cannot use drag-and-drop so I need to be able to click this button to get a file selector up and it's not clear to me what I can do to get it back.
/* Restore upload message on comment box */bodyfile-attachment.is-default.drag-and-drop{display: flex !important;}
I had to add body to add extra specificity since the stylesheet overrides in the settings are loaded before the stylesheet, so it didn't win the specificity war.
I'm pretty sure it still counts, it's just that it's sorted "important,
specificity". So important always wins over non-important, but among
important the specificity still wins.
I'm not sure how else the trick would have fixed it.
Den lör 1 juni 2019 04:52Federico Brigante <[email protected]> skrev:
Activity
Mange commentedon May 31, 2019
How can I undo this? I cannot use drag-and-drop so I need to be able to click this button to get a file selector up and it's not clear to me what I can do to get it back.
fregante commentedon May 31, 2019
Probably
Mange commentedon May 31, 2019
I finally got it working with
I had to add
bodyto add extra specificity since the stylesheet overrides in the settings are loaded before the stylesheet, so it didn't win the specificity war.fregante commentedon Jun 1, 2019
Mange commentedon Jun 1, 2019
Mange commentedon Jun 1, 2019
An update for any future searchonauts:
Since #2086, you need to use this override in the CSS:
ShalokShalom commentedon Jun 2, 2019
Can we add an option for this?
fabiospampinato commentedon Jun 13, 2019
Shouldn't the currently hidden bar for uploading a file be re-enabled then?
Basically forcing users to always use drag & drop provides no advantage whatsoever to me.
fregante commentedon Jun 13, 2019
The option is the CSS
fregante commentedon Jun 13, 2019
#2155