-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filepicker - hide empty create action box if creation is not allowed #28020
Conversation
6f259cc
to
371168a
Compare
371168a
to
e501a89
Compare
e501a89
to
3d60089
Compare
431eece
to
3062070
Compare
@@ -321,7 +321,7 @@ const Dialogs = { | |||
|
|||
var newButton = self.$filePicker.find('.actions.creatable .button-add') | |||
if (type === self.FILEPICKER_TYPE_CHOOSE && !options.allowDirectoryChooser) { | |||
newButton.hide() | |||
self.$filePicker.find('.actions.creatable').hide() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, none of those commands (neither the old nor the new) seem to have any effect in my testing so I really don't know how to fix this from the javascript side...
80a812e
to
fa61c98
Compare
fa61c98 Fixes #15966 via CSS but has the unwanted side effect that it also changes the style of the button when the button is visible... (I unfortunately didn't find any solution that fixes the initial problem and this visual regression at the same time...) CSS Solution for #15966
New Problem after applying that css style change
I don't think that its too bad but whats your opinion on that? |
/rebase |
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: szaimen <szaimen@e.mail.de>
fa61c98
to
81b043d
Compare
Superseded by #33297 |
Fix #15966
Signed-off-by: szaimen szaimen@e.mail.de