Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fixes following threads design implementation review #7100

Merged
merged 23 commits into from
Nov 11, 2021

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Nov 9, 2021

Fixes element-hq/element-web#19646
Fixes element-hq/element-web#19645
Fixes element-hq/element-web#19629

I have not added the display name in the thread summary as we are still waiting to decide on how to tackle disambiguation in that context

Screen Shot 2021-11-09 at 08 09 30

Screen Shot 2021-11-09 at 08 09 49


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://618cf70ac6796447146e273f--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@germain-gg germain-gg added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Nov 9, 2021
@germain-gg germain-gg requested a review from a team as a code owner November 9, 2021 08:10
@germain-gg germain-gg removed request for a team and janogarcia November 9, 2021 10:39
@germain-gg germain-gg marked this pull request as draft November 9, 2021 10:39
@germain-gg germain-gg changed the title gsouquet/threads ui update Fixes following threads design implementation review Nov 10, 2021
@germain-gg germain-gg marked this pull request as ready for review November 10, 2021 12:43
@germain-gg germain-gg requested review from janogarcia and a team November 10, 2021 12:43
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks, looks good overall! 😄

padding: 8px;
border-radius: inherit;
border-radius: 8px;
width: calc(100% - 16px);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume box-sizing is no help to remove the calc...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It created all sort of funky regressions with the scrollbar. It's likely that a more elegant solution exists but I did not manage to figure it out yet

Copy link
Contributor

Choose a reason for hiding this comment

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

as reference: #7105
(But gsouquet already found this anyways. Still wanted to link it here again.)

padding: 8px;
border-radius: inherit;
border-radius: 8px;
width: calc(100% - 16px);
Copy link
Contributor

Choose a reason for hiding this comment

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

as reference: #7105
(But gsouquet already found this anyways. Still wanted to link it here again.)

Comment on lines 170 to -135
.mx_AutoHideScrollbar {
border-radius: 8px;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about this solution? #7105
I also fiddled around with this, when I wanted to get the hidden scrollbar with rounded corners working with the TimelineCard (Chat card in the right panel). I wanted it to be based on the same solution as the threads so I played around with the threads as well.

.mx_AutoHideScrollbar {
          border-radius: 8px;
          padding-right: 0px;
          -ms-overflow-style: none;  // IE and Edge
          scrollbar-width: none;  // Firefox
          
          &::-webkit-scrollbar {
              display: none; // Chrome, Safari, Opera
          }
}

Hiding the scrollbar with the browser and not do the margin/padding trick gave good results with rounded corners.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think that hiding the scrollbar is an option. They are an important indicator to orientate yourself in the app, and I believe they serve some accessibility purpose too

@janogarcia
Copy link
Contributor

@gsouquet Thanks, Germain!

I've added new issues to element-hq/element-web#19669 and marked with 🔴 NOT FIXED YET those that were checked off but aren't really fixed.

@germain-gg germain-gg enabled auto-merge (squash) November 11, 2021 10:56
@germain-gg germain-gg merged commit 1de9630 into develop Nov 11, 2021
@germain-gg germain-gg deleted the gsouquet/threads-ui-update branch November 11, 2021 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
4 participants