Skip to content

Commit

Permalink
fix: visual bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Jan 31, 2025
1 parent 21da775 commit 97e56af
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
8 changes: 7 additions & 1 deletion framework/core/js/src/admin/components/SessionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
getButtonContent() {
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>,
];
}

/**
Expand Down
4 changes: 3 additions & 1 deletion framework/core/js/src/common/components/SelectDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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,
];
}
Expand Down
4 changes: 3 additions & 1 deletion framework/core/js/src/forum/components/HeaderDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default abstract class HeaderDropdown<CustomAttrs extends IHeaderDropdown
return [
this.attrs.icon ? <Icon name={this.attrs.icon} className="Button-icon" /> : null,
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>,
];
}

Expand Down
8 changes: 7 additions & 1 deletion framework/core/js/src/forum/components/SessionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
getButtonContent() {
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>,
];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion framework/core/less/common/App.less
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
}
.FormControl, .ButtonGroup, .Button {
width: 100%;
text-align: left;
justify-content: start;
}
.Dropdown-menu {
.ButtonGroup, .Button {
Expand Down
4 changes: 4 additions & 0 deletions framework/core/less/forum/DiscussionListItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
}
.DiscussionListItem-author-avatar {
display: block;

+ .tooltip {
width: max-content;
}
}
.DiscussionListItem-badges {
margin-top: 10px;
Expand Down

0 comments on commit 97e56af

Please sign in to comment.