Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: avoid horizontal scrollbars in chat list #4253

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Fixed
- image thumbnails not showing in chat list #4247
- progress bar not working #4248
- avoid showing horizontal scrollbars in chat list #4253

<a id="1_47_0"></a>

Expand Down
7 changes: 4 additions & 3 deletions packages/frontend/scss/chat/_chat-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
}

& > .content {
// Ensure it's as wide as the parent allows, but doesn't overflow
// the parent if the content is too long.
width: 0;
flex-grow: 1;

margin-left: 10px;
// parent - 48px (for avatar) - 10px (our right padding)
max-width: calc(100% - 58px);

display: flex;
flex-direction: column;
Expand All @@ -46,7 +48,6 @@
flex-direction: row;
align-items: center;
& > .name {
width: 90%;
flex-grow: 1;
flex-shrink: 1;
font-size: 14px;
Expand Down
9 changes: 5 additions & 4 deletions packages/frontend/scss/contact/_contact.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
}

div.contact-name {
// Ensure it's as wide as the parent allows, but doesn't overflow
// the parent if the content is too long.
width: 0;
flex-grow: 1;

display: inline-block;
width: calc(100% - 64px);
// height: 54px;
margin-left: 10px;
.chat-list & {
width: calc(100% - 37px);
}
.display-name {
font-weight: bold;
margin-bottom: 0px;
Expand Down
Loading