calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Event title not fully readable in the right side panel

Open Jerome-Herbinet opened this issue 3 years ago • 8 comments

Is your feature request related to a problem? Please describe.

When I look at the details of a diary event of a colleague who has shared his diary with me in read-only mode (right-hand side panel), I cannot read its title if it is a bit long. In this case the title is cut off and ends with ellipsis. 2022-05-11_10-07

Describe the solution you'd like

Remove the ellipsis and display the full title of the event, with line breaks if necessary, as in the simplified display 2022-05-11_10-42 .

Describe alternatives you've considered

Display an information bubble with the full title when the cursor is hovered over it (Simple HTML attribute ; example: title="{full title of the event}") 2022-05-11_10-27 .

Additional context

No response

Jerome-Herbinet avatar May 11 '22 08:05 Jerome-Herbinet

I think we could allow up to two lines + title attribute in read-only mode. Opinions @nextcloud/designers?

tcitworld avatar May 11 '22 09:05 tcitworld

Allowing two lines needs to be done in the vue-components. There is a long standing PR that never got finished/merged: https://github.com/nextcloud/nextcloud-vue/pull/1788

Adding a Tooltip with the full title is possible easily, we just need to set the title-tooltip prop accordingly.

raimund-schluessler avatar May 11 '22 09:05 raimund-schluessler

Agreed, 2 lines sounds good! If the name is longer than 2 lines then we can ellipsise and use a tooltip :)

nimishavijay avatar May 12 '22 10:05 nimishavijay

Agreed, 2 lines sounds good! If the name is longer than 2 lines then we can ellipsise and use a tooltip :)

This would be nice.

Jerome-Herbinet avatar May 12 '22 10:05 Jerome-Herbinet

@juliushaertl what do you think about this issue ?

Jerome-Herbinet avatar May 24 '22 06:05 Jerome-Herbinet

I think I've found a great CSS property to manage that (with it, it's even possible to choose number of line before displaying "...". Can somebody just help me find the CSS or vue file I shlould edit ? I struggled a lot to find it ... without success ? Once somebody can give me the information, I'll create a PR.

Jerome-Herbinet avatar Sep 23 '22 14:09 Jerome-Herbinet

Check my Pull Request 🙂 #3295

Jerome-Herbinet avatar Sep 26 '22 14:09 Jerome-Herbinet

PR has not been merged:

https://github.com/nextcloud-libraries/nextcloud-vue/pull/4194

miaulalala avatar Apr 19 '24 15:04 miaulalala