Skip to content

Commit

Permalink
fix username layout issue (particular bad with messages)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Dec 11, 2024
1 parent ffa11da commit 05c7453
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/packages/frontend/purchases/subscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function SubscriptionActions({
}
};

// this is NOT exposed in the UI right now, in the interest of simplicity:
const handleRenewSubscription = async () => {
try {
setLoading(true);
Expand Down
40 changes: 21 additions & 19 deletions src/packages/frontend/users/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,27 @@ export function User(props: Props) {
info = info.toJS();
const n = name(info);
return (
<span style={{ ...style, display: "flex", alignItems: "center" }}>
{props.show_avatar && (
<>
<Avatar
account_id={props.account_id}
first_name={n}
size={props.avatarSize}
no_tooltip={
true /* the tooltip just shows the name which is annoying/redundant since we are showing the name here anyways */
}
no_loading
/>
<Gap />
</>
)}
{n}
{render_original(info)}
{render_last_active()}
{addonAfter}
<span style={{ ...style, display: "inline-block" }}>
<span style={{ display: "flex", alignItems: "center" }}>
{props.show_avatar && (
<>
<Avatar
account_id={props.account_id}
first_name={n}
size={props.avatarSize}
no_tooltip={
true /* the tooltip just shows the name which is annoying/redundant since we are showing the name here anyways */
}
no_loading
/>
<Gap />
</>
)}
{n}
{render_original(info)}
{render_last_active()}
{addonAfter}
</span>
</span>
);
}
Expand Down

0 comments on commit 05c7453

Please sign in to comment.