Skip to content

Conversation

@danxuliu
Copy link
Member

Fix working icon position when sending or deleting a comment

The working/loading icon is now placed at the same position as the confirm and delete "buttons" while a comment is being sent or deleted.

To place the working icon at the same position as the confirm button I have just copied the CSS rules used by the absolutely positioned input element of the confirm button. It looks like a terribly brittle approach, so @nextcloud/designers feel free to improve it ;-)

Also please ignore the input field not being disabled in the screenshots below; that is a different issue ;-) (#7266)

Send, before:
comment-icon-send-before

Send, after:
comment-icon-send-after

Delete, before:
comment-icon-delete-before

Delete, after:
comment-icon-delete-after

The submit confirm icon is shown as the background image of an
absolutely positioned input element, so the CSS rules for the submit
working icon were modified to match those of the submit confirm icon.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When a comment was being deleted the submit working icon was shown. Now
the submit working icon is kept hidden in that case and a specific
delete working icon, which is shown at the same position as the delete
icon, is used instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added 3. to review Waiting for reviews bug design Design, UI, UX, etc. feature: comments labels Nov 24, 2017
@danxuliu danxuliu added this to the Nextcloud 13 milestone Nov 24, 2017
@nickvergessen
Copy link
Member

Much better in place

@MorrisJobke
Copy link
Member

CI failure is due to codecov 503.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice 👍

@MorrisJobke MorrisJobke merged commit 7bb4243 into master Nov 27, 2017
@MorrisJobke MorrisJobke deleted the fix-working-icon-position-when-sending-or-deleting-a-comment branch November 27, 2017 11:20
@danxuliu
Copy link
Member Author

The delete icon position was changed by the last commit of #7251 (5591ea6), so the position of the working icon shown while deleting a comment, even if it is not too out of place, should be fixed again :-(

@pixelipo
Copy link
Contributor

I think I'll have a go with this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug design Design, UI, UX, etc. feature: comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants