Skip to content

Commit 97e56af

Browse files
committed
fix: visual bugs
1 parent 21da775 commit 97e56af

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

framework/core/js/src/admin/components/SessionDropdown.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
2828
getButtonContent() {
2929
const user = app.session.user;
3030

31-
return [<Avatar user={user} />, ' ', <span className="Button-label">{username(user)}</span>];
31+
return [
32+
<Avatar user={user} />,
33+
' ',
34+
<span className="Button-label">
35+
<span className="Button-labelText">{username(user)}</span>
36+
</span>,
37+
];
3238
}
3339

3440
/**

framework/core/js/src/common/components/SelectDropdown.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export default class SelectDropdown<CustomAttrs extends ISelectDropdownAttrs = I
5050
let label = (activeChild && typeof activeChild === 'object' && 'children' in activeChild && activeChild.children) || this.attrs.defaultLabel;
5151

5252
return [
53-
<span className="Button-label">{label}</span>,
53+
<span className="Button-label">
54+
<span className="Button-labelText">{label}</span>
55+
</span>,
5456
this.attrs.caretIcon ? <Icon name={this.attrs.caretIcon} className="Button-caret" /> : null,
5557
];
5658
}

framework/core/js/src/forum/components/HeaderDropdown.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export default abstract class HeaderDropdown<CustomAttrs extends IHeaderDropdown
4444
return [
4545
this.attrs.icon ? <Icon name={this.attrs.icon} className="Button-icon" /> : null,
4646
unread !== 0 && <span className="Bubble HeaderDropdownBubble">{unread}</span>,
47-
<span className="Button-label">{this.attrs.label}</span>,
47+
<span className="Button-label">
48+
<span className="Button-labelText">{this.attrs.label}</span>
49+
</span>,
4850
];
4951
}
5052

framework/core/js/src/forum/components/SessionDropdown.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ export default class SessionDropdown<CustomAttrs extends ISessionDropdownAttrs =
3333
getButtonContent() {
3434
const user = app.session.user;
3535

36-
return [<Avatar user={user} />, ' ', <span className="Button-label">{username(user)}</span>];
36+
return [
37+
<Avatar user={user} />,
38+
' ',
39+
<span className="Button-label">
40+
<span className="Button-labelText">{username(user)}</span>
41+
</span>,
42+
];
3743
}
3844

3945
/**

framework/core/less/common/App.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
}
212212
.FormControl, .ButtonGroup, .Button {
213213
width: 100%;
214-
text-align: left;
214+
justify-content: start;
215215
}
216216
.Dropdown-menu {
217217
.ButtonGroup, .Button {

framework/core/less/forum/DiscussionListItem.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
}
3737
.DiscussionListItem-author-avatar {
3838
display: block;
39+
40+
+ .tooltip {
41+
width: max-content;
42+
}
3943
}
4044
.DiscussionListItem-badges {
4145
margin-top: 10px;

0 commit comments

Comments
 (0)