Skip to content

Conversation

@banobepascal
Copy link
Contributor

Change-Id: Iaefc7d1528b8273e53b669ff903075604358f8b8

Summary

  • Added edit icon for a quick action to edit a comment
  • Date and resolved state moved to card bottom for cleaner header and more natural information flow
  • Improved and balanced cool-annotation alignments

PREVIEW

image
  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch 2 times, most recently from cec4957 to 6c93663 Compare October 31, 2025 09:23
Copy link
Contributor

@pedropintosilva pedropintosilva left a comment

Choose a reason for hiding this comment

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

Thanks Banobe, great to see the move from a table to a flex box, maybe there will be the need to update some cypress bits (I'm not sure). Anyhow good job!

Image

The pencil button looks too big, I see the svg has the correct dimensions but the shape inside seems bigger in this PR. Could you try to export the icon I did from penpot and see if it helps?

Also it seems the white inner border of the avatar (that helps to separate the avatar image and the color of the user) is too small in this PR

Also, could you please update the font-sizes? I have done that to see how it would look like (as per the PenPot designs):

Image

but since we don't have full control of which font will be used from var(--cool-font) it can look too small, but we can test/check that after this PR is merged. For this PR it's important that we follow the PenPot designs, particularly that the date is not bigger nor the same size as the comment itself.

The Resolve seems not aligned with the comment and the icons, it should :
image


Image

@github-project-automation github-project-automation bot moved this from To Review to In Progress in Collabora Online Oct 31, 2025
@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from 6c93663 to 88cc2dc Compare October 31, 2025 15:24
@banobepascal
Copy link
Contributor Author

banobepascal commented Oct 31, 2025

Also it seems the white inner border of the avatar (that helps to separate the avatar image and the color of the user) is too small in this PR

I see its set to 1.8px, i have made the adjustment

The Resolve seems not aligned with the comment and the icons, it should :

Screenshot from 2025-10-31 17-40-42

@pedropintosilva
Copy link
Contributor

looks much better!

But now it seems the buttons are at 30px?

image

the blue border looks super small but maybe it's due to how we are creating/hacking the white outline
image

Also the pencil button lacks the same hover style as the more button

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from 88cc2dc to e9df2fb Compare October 31, 2025 16:11
Comment on lines 762 to 775
.cool-annotation-img {
box-sizing: content-box !important;
max-width: 32px;
display: inline-block;
border: solid 2px;
border: solid 1px;
border-radius: 50%;
height: 32px;
width: 32px;
height: var(--default-height);
width: var(--default-width);
padding: 0;
opacity: 0.9;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a problem with the opacity, it never gets to fully opaque (1), can you please check that? Historically, I think it was set to that opacity only if the card is not active (?) can you recheck git blames etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right. The opacity: 0.9 was recently added to create a hover effect where hovering over a collapsed comment sets the opacity to 1. However, I think opacity: 1 should be applied to active cards

https://github.com/CollaboraOnline/online/pull/10901/files#diff-b8cf5f31a83eeceb6681df5230b1f6cf1ba65d8b852638b3f93dac173a8a3de3R706

https://github.com/CollaboraOnline/online/pull/10901/files#diff-b8cf5f31a83eeceb6681df5230b1f6cf1ba65d8b852638b3f93dac173a8a3de3R711

max-width: 32px;
display: inline-block;
border: solid 2px;
border: solid 1px;
Copy link
Contributor

Choose a reason for hiding this comment

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

The colorful border cannot be glue to the image otherwise images will blend too much with the outer border and both the border color and the edges of the avatar will be confusing/indistinguishable. Please add also a white outline of 1px that it's offset by -2px.

Copy link
Contributor

@pedropintosilva pedropintosilva left a comment

Choose a reason for hiding this comment

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

^

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from e9df2fb to bf6f879 Compare November 3, 2025 15:52
@pedropintosilva
Copy link
Contributor

.cool-annotation-img {
	box-sizing: content-box !important;
	max-width: 32px;
	display: inline-block;
	border: solid 2px;
	border-radius: 50%;
	height: var(--default-height);
	width: var(--default-width);
	padding: 0;
	outline: 2px solid #fff;
	outline-offset: -3px;
}

@pedropintosilva
Copy link
Contributor

image

the offset that we use to place cards (via top property) in a thread ^ also needs to be adjusted

@pedropintosilva
Copy link
Contributor

Also we have discussed and that more button looks a bit off, too "light" in comparison to the edit button. Best to try to use the lc_more.svg

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from bf6f879 to e688d8a Compare November 4, 2025 15:53
@banobepascal
Copy link
Contributor Author

the offset that we use to place cards (via top property) in a thread ^ also needs to be adjusted

image

Made update: dc59c9d

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch 2 times, most recently from c769fe8 to e9cdc17 Compare November 5, 2025 11:39
Copy link
Contributor

@pedropintosilva pedropintosilva left a comment

Choose a reason for hiding this comment

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

Can you please add missing box-size tot he "buttons" (divs) otherwise they become bigger than 24px

@pedropintosilva
Copy link
Contributor

and if you can please style the scrollbar , right now it's really huge:

image

It can be smaller:

image

example:

scrollbar-color: gray #fafafa;
scrollbar-width: thin;

But better to use css vars, I think we already have some for scroll bar purposes if not we can create new ones and the respective value for darkmode

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from e9cdc17 to 5ba2a8a Compare November 6, 2025 00:51
@banobepascal
Copy link
Contributor Author

#13325 (comment)

image image

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from 5ba2a8a to 5d117dc Compare November 6, 2025 10:52
@pedropintosilva
Copy link
Contributor

#13325 (comment)

image image

Please invert also the outline color, otherwise the border looks very thick on dark mode (due to outline being white)

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from 5d117dc to fdb7206 Compare November 6, 2025 15:18
@pedropintosilva pedropintosilva self-requested a review November 6, 2025 15:24
Copy link
Contributor

@pedropintosilva pedropintosilva left a comment

Choose a reason for hiding this comment

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

thanks now the dark mode looks better. But we are still missing hover state on dark mode. After that we can merge.

As a an action item we should think a better way to align scrollbars within comment layout , scrollbar-gutter could help but probably not enough ... anyhow out side of this PR. But feel free to play with it and post your findings if you can.

@banobepascal
Copy link
Contributor Author

banobepascal commented Nov 7, 2025

thanks now the dark mode looks better. But we are still missing hover state on dark mode. After that we can merge.

Made the change to support also unbranded f440636

@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch 2 times, most recently from 8c71046 to f440636 Compare November 7, 2025 08:47
-Added edit icon for a quick action to edit a comment
-Date and resolved state moved to card bottom for cleaner header and more
 natural information flow
-Improved and balanced cool-annotation alignments
-Remove img opacity from active comment cards

Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: I990ff8e706640955690a2502ffa64d35babc67eb
Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: I16a01161df2019a877e916e15548937ddbc15d26
-Updated test selector to click `.cool-annotation-menu` instead of
 '.cool-annotation-menubar' since the menubar now contains multiple
 menu items ('.cool-annotation-menu' and '.cool-annotation-menu-edit').

Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: Id9b7bf4bd067308bab1d21adbc6611d8302594fd
-The scrollbar in annotation content was oversized, taking up
 unnecessary space.
-Introduced --scrollbar-color variable with light/dark theme values
 and set scrollbar-width to thin for improved visual consistency.
-Added color-text-date to use annotation date for light/dark theme
-Added box-sizing to annotation menu buttons
-Added --color-background-lighter to annotation-img outline

Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: I1fba2aaa00bf5f878ef308fc5c7a0267ab61fa67
-Remove duplicate background image from annotation avatar

Signed-off-by: Banobe Pascal <[email protected]>
Change-Id: Ib4ceabb66d43a543eeb03e6e58502c2a3933ce73
@banobepascal banobepascal force-pushed the private/banobepascal/comment-card branch from f440636 to 936d477 Compare November 7, 2025 11:56
@pedropintosilva pedropintosilva self-requested a review November 10, 2025 15:56
@github-project-automation github-project-automation bot moved this from In Progress to To Test in Collabora Online Nov 10, 2025
@pedropintosilva
Copy link
Contributor

@gokaysatir can you please check the small JS changes? thanks!

Copy link
Contributor

@gokaysatir gokaysatir left a comment

Choose a reason for hiding this comment

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

Mostly design related and @pedropintosilva already checked it intensely as i see. Looks good to me. Thanks.

@pedropintosilva pedropintosilva merged commit 58a43db into master Nov 11, 2025
14 checks passed
@pedropintosilva pedropintosilva deleted the private/banobepascal/comment-card branch November 11, 2025 11:36
@github-project-automation github-project-automation bot moved this from To Test to Done in Collabora Online Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve Comment Card

3 participants