text icon indicating copy to clipboard operation
text copied to clipboard

Improved styling of saving indicator

Open susnux opened this issue 2 years ago β€’ 10 comments

  • Target version: master

Summary

Improved the styling of the saving indicator on small screen sizes, previously the contributors menu was overlapped by the saving indicator. Also on dark color mode the saving indicator was inconveniently sticking out by its bright (white) background color, it is now set to the main background color.

Note the overlapping of the indicator and menu and the background color of the saving indicator on lower screen width: Before

https://user-images.githubusercontent.com/1855448/179947888-e0177b7b-0b9d-456e-a6c0-74e9ef11898b.mp4

After

https://user-images.githubusercontent.com/1855448/179947973-d149c688-447d-43bc-a362-a575a2142507.mp4

susnux avatar Jul 20 '22 09:07 susnux

If your browser does not support mp4, this is the important part (screenshots): Before: before

After: after

susnux avatar Jul 20 '22 09:07 susnux

/compile

susnux avatar Jul 20 '22 15:07 susnux

@jancborchardt I'm wondering if we should fine-tune the circle indicator a bit. It doesn't seem to obvious what it is about in its current state. The original design spec is from https://github.com/nextcloud/text/issues/2211

Could be combined with participants, showing a circle indicator on unsaved changes, and in the participants menu we can show extra text for "Last saved x minutes ago" on top of the participant list β†’ let’s do this one

juliusknorr avatar Jul 25 '22 18:07 juliusknorr

If understand that correctly there should be only one button / icon (the participants menu) with the saved indicator as the outline?

Or a check mark icon within the saved indicator?

susnux avatar Jul 25 '22 19:07 susnux

If understand that correctly there should be only one button / icon (the participants menu) with the saved indicator as the outline?

Or a check mark icon within the saved indicator?

From https://github.com/nextcloud/text/issues/2211 my understanding would be that we want an outline around the avatar as a saved indicator. Additionally, a text "Last saved x minutes ago" on the top of the participants list.

Not sure whether all the stacked avatars should have the outline though. I guess it looks weird if only one has it.

mejo- avatar Jul 26 '22 08:07 mejo-

To visualize:

Or a check mark icon within the saved indicator?

Saved indicator using a check mark Saved indicator when not saved

If understand that correctly there should be only one button / icon (the participants menu) with the saved indicator as the outline?

Using a outline on the collaborators menu as saving indicator Using a outline on the collaborators menu as saving indicator

Additionally, a text "Last saved x minutes ago" on the top of the participants list.

This is already implemented

susnux avatar Jul 26 '22 10:07 susnux

If understand that correctly there should be only one button / icon (the participants menu) with the saved indicator as the outline?

Using a outline on the collaborators menu as saving indicator Using a outline on the collaborators menu as saving indicator

Thanks for the screenshots @susnux! How would this look like with several participants being active in the document?

mejo- avatar Jul 26 '22 11:07 mejo-

How would this look like with several participants being active in the document?

I would say like this: Screenshot_20220726_140405 Screenshot_20220726_140356

susnux avatar Jul 26 '22 12:07 susnux

Looks good to me, @jancborchardt what do you think?

juliusknorr avatar Jul 26 '22 13:07 juliusknorr

I'd say for consistency it would be nice to use the same icon as we use in Office. :) It has a little dot indicator which is a bit more widely known and we can use it instead of the color border.

  • Saved indicator: https://fonts.google.com/icons?selected=Material%20Icons%3Acheck%3A
  • For unsaved changes: https://gitlab.collabora.com/productivity/online-branding/-/blob/master/themes/nextcloud/images/lc_savemodified_branding.svg
<svg width="24px" height="24px" fill="#000000" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/><circle cx="18" cy="18" r="3" fill="#0082c9" style="paint-order:markers fill stroke"/></svg> 

jancborchardt avatar Jul 27 '22 21:07 jancborchardt

Let's get this merged as it fixes the ugly white filled circle in dark mode. It doesn't replace the "saved" indicator with an icon (as suggested in https://github.com/nextcloud/text/pull/2734#issuecomment-1195291454), though. Let's tackle this in a follow-up PR - it's also tracked in https://github.com/nextcloud/text/issues/2836.

mejo- avatar Oct 04 '22 11:10 mejo-

/compile

mejo- avatar Oct 04 '22 11:10 mejo-

/backport to stable25

mejo- avatar Oct 04 '22 12:10 mejo-

/compile

mejo- avatar Oct 05 '22 00:10 mejo-

/backport 6bef7e69d559a3be961d353d1e8686402bcbea97 to stable25

mejo- avatar Oct 05 '22 07:10 mejo-

The backport to stable25 failed. Please do this backport manually.