fix: visual bugs

This commit is contained in:
Sami Mazouz 2025-01-31 13:25:26 +01:00
parent 21da7758af
commit 97e56af2cd
No known key found for this signature in database
6 changed files with 25 additions and 5 deletions

View File

@ -28,7 +28,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
getButtonContent() { getButtonContent() {
const user = app.session.user; const user = app.session.user;
return [<Avatar user={user} />, ' ', <span className="Button-label">{username(user)}</span>]; return [
<Avatar user={user} />,
' ',
<span className="Button-label">
<span className="Button-labelText">{username(user)}</span>
</span>,
];
} }
/** /**

View File

@ -50,7 +50,9 @@ export default class SelectDropdown<CustomAttrs extends ISelectDropdownAttrs = I
let label = (activeChild && typeof activeChild === 'object' && 'children' in activeChild && activeChild.children) || this.attrs.defaultLabel; let label = (activeChild && typeof activeChild === 'object' && 'children' in activeChild && activeChild.children) || this.attrs.defaultLabel;
return [ return [
<span className="Button-label">{label}</span>, <span className="Button-label">
<span className="Button-labelText">{label}</span>
</span>,
this.attrs.caretIcon ? <Icon name={this.attrs.caretIcon} className="Button-caret" /> : null, this.attrs.caretIcon ? <Icon name={this.attrs.caretIcon} className="Button-caret" /> : null,
]; ];
} }

View File

@ -44,7 +44,9 @@ export default abstract class HeaderDropdown<CustomAttrs extends IHeaderDropdown
return [ return [
this.attrs.icon ? <Icon name={this.attrs.icon} className="Button-icon" /> : null, this.attrs.icon ? <Icon name={this.attrs.icon} className="Button-icon" /> : null,
unread !== 0 && <span className="Bubble HeaderDropdownBubble">{unread}</span>, unread !== 0 && <span className="Bubble HeaderDropdownBubble">{unread}</span>,
<span className="Button-label">{this.attrs.label}</span>, <span className="Button-label">
<span className="Button-labelText">{this.attrs.label}</span>
</span>,
]; ];
} }

View File

@ -33,7 +33,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
getButtonContent() { getButtonContent() {
const user = app.session.user; const user = app.session.user;
return [<Avatar user={user} />, ' ', <span className="Button-label">{username(user)}</span>]; return [
<Avatar user={user} />,
' ',
<span className="Button-label">
<span className="Button-labelText">{username(user)}</span>
</span>,
];
} }
/** /**

View File

@ -211,7 +211,7 @@
} }
.FormControl, .ButtonGroup, .Button { .FormControl, .ButtonGroup, .Button {
width: 100%; width: 100%;
text-align: left; justify-content: start;
} }
.Dropdown-menu { .Dropdown-menu {
.ButtonGroup, .Button { .ButtonGroup, .Button {

View File

@ -36,6 +36,10 @@
} }
.DiscussionListItem-author-avatar { .DiscussionListItem-author-avatar {
display: block; display: block;
+ .tooltip {
width: max-content;
}
} }
.DiscussionListItem-badges { .DiscussionListItem-badges {
margin-top: 10px; margin-top: 10px;