move select2 styles to core so it's universal, not only for tags#1789
move select2 styles to core so it's universal, not only for tags#1789MorrisJobke merged 2 commits intomasterfrom
Conversation
|
@jancborchardt, thanks for your PR! By analyzing the history of the files in this pull request, we identified @PVince81, @vincchan and @Henni to be potential reviewers. |
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
0158cf1 to
66258f5
Compare
|
Works locally. Looks nice! 🚀 LGTM |
|
@jancborchardt it's because the dropdown uses the width of |
core/css/inputs.css
Outdated
| box-sizing: content-box !important; | ||
| border-radius: 3px !important; | ||
| border: 1px solid #ddd !important; | ||
| margin: 3px 3px 3px 0 !important; |
There was a problem hiding this comment.
Fixed while keeping the margin on the container, thank you! :)
|
Ps: there's a lot of !important overriding. Is this really necessary? Shouldn't we load the jquery theme before instead? |
I agree. @MorrisJobke @LukasReschke how can we change the order here? The inputs.css should be one of the last loaded. |
Crash course for @jancborchardt how to do this:
|
server/lib/private/legacy/template.php Line 120 in b4f36d4 |
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
|
The order is reversed when implementing. So in the file @MorrisJobke pointed (thanks 😉 ) you need to pu inputs BEFORE jquery! 😁 |
|
@MorrisJobke I searched for it, but since it was called legacy I assumed it’s not used anymore. There was another file which looked like it’s done there and it seemed like it just loaded all the files from the CSS directory. So thanks for helping. |
|
Experimented with removing all the !importants and with changing the order – doesn’t work. If anyone can make it work I’m happy for enhancements, but I’d say let’s get it in. |
|
This is strange! 😕 |
|
@jancborchardt maybe we should add this into the systemtags apps? Since this is only used here? |
Correct - this is a bit weird, but you figured it out 😉 |
|
👍 |
No – as said above it’s also used elsewhere like app mgmt and the spreed app. :) That’s the point of this PR, to make the select2 style adjustments more general. |
|
Okay! :) |
|
@skjnldsv that’s what I did here, moved most of the select2 styles from systemtag.css to core/css/inputs.css ;) |
|
Yes, but I mean the server/lib/private/legacy/template.php Line 120 in b4f36d4 Would be better than loading it from here https://github.com/nextcloud/server/blob/master/apps/systemtags/appinfo/app.php#L35 |
|
@skjnldsv good point! Do you want to do the change in a pull request? :) |


Before & after: Much more breathing space, less complexity and lines, nice Nextcloud style, and proper connection to the input field:


Please review @nextcloud/designers @ErikPel @nextcloud/javascript you can test it with:
The one problem which still occurs (also with old version) is that the dropdown is about 3 pixels too wide on the right. Any idea @nextcloud/javascript? (NOT A BLOCKER)