-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Updated popover rules to allow form inputs and added input submit for… #8575
Conversation
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.
Instead of a separate button, it should just be an icon-confirm element on the right inside the input field. :)
Just like we do in the "Add to your Nextcloud" on the sharing page.
Oh yes it could!! :) |
Okay, I tried to add the standard I was talking you about @jancborchardt :) @nextcloud/designers |
bfc95d5
to
a8f2fe0
Compare
Looks nice @skjnldsv I'd just say the icon confirm button should have a default opacity, to match the text color of the form field. |
@juliushaertl Yes, I'm fixing all of this :) |
Codecov Report
@@ Coverage Diff @@
## master #8575 +/- ##
============================================
- Coverage 51.87% 51.38% -0.49%
- Complexity 25367 25368 +1
============================================
Files 1607 1541 -66
Lines 95154 87340 -7814
Branches 1379 0 -1379
============================================
- Hits 49362 44883 -4479
+ Misses 45792 42457 -3335
|
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
caaa1b5
to
e2910e1
Compare
In the first image it looks at least better than before. The last image you posted the little folder icon and the text in the last input are not aligned anymore. Could you revert to #8575 (comment) ? |
@MorrisJobke yes, there's a fix incoming! :)
|
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Okay alignment is good now! |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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.
Just noticed one issue:
|
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@MorrisJobke oups forgot about that! Sorry, only the new folder button? I don't have this behavior on chrome, let me check edit: nope, and I did not changed the bahavior, the submit function is still executed with a stopPropagation :/ server/apps/files/js/newfilemenu.js Lines 188 to 189 in 5dbd09f
|
New folder and new file. |
Me neither - only in Safari :/ |
Also pressing enter causes a reload of the page in Safari (nevertheless master and this branch work totally fine in Chrome :() |
apps/files/js/newfilemenu.js
Outdated
@@ -171,6 +172,10 @@ | |||
} | |||
}); | |||
|
|||
$submit.click(function(){ | |||
$form.submit(); |
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.
Maybe stop here as well?
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.
Can you try again with the last commit? @MorrisJobke :)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tested and works now 👍 |
JS tests fail https://drone.nextcloud.com/nextcloud/server/5588/221 |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@rullzer js tests passed |
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.
lets do this
… new File
Fixes #1904
Also new standard for the popovermenu