Skip to content

Commit

Permalink
Merge pull request #1503 from ecency/bugfix/tailwind-migration
Browse files Browse the repository at this point in the history
Tailwind migration: fixed proposals vote item styles
  • Loading branch information
feruzm authored Nov 9, 2023
2 parents af77313 + 8069e9d commit 52eee9d
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions src/common/components/proposal-votes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import "./_index.scss";
import { Modal, ModalBody, ModalHeader, ModalTitle } from "@ui/modal";
import { FormControl } from "@ui/input";
import { List, ListItem } from "@ui/list";
import { Badge } from "@ui/badge";

interface Voter {
name: string;
Expand Down Expand Up @@ -200,34 +201,35 @@ export class ProposalVotesDetail extends BaseComponent<Props, State> {
const strProxyHp = numeral(x.proxyHp).format("0.00,");

return (
<ListItem styledDefer={true} className="list-item" key={x.name}>
<div className="item-main">
{ProfileLink({
...this.props,
username: x.name,
children: <UserAvatar username={x.name} size="small" />
})}

<div className="item-info">
<ListItem styledDefer={true} className="!flex gap-3" key={x.name}>
{ProfileLink({
...this.props,
username: x.name,
children: <UserAvatar username={x.name} size="small" />
})}
<div>
<div className="flex items-center gap-2 mb-3">
{ProfileLink({
...this.props,
username: x.name,
children: <span className="item-name notranslate">{x.name}</span>
})}
<span className="item-reputation">{accountReputation(x.reputation)}</span>
<Badge className="text-xs leading-3">
{accountReputation(x.reputation)}
</Badge>
</div>
<div className="item-extra">
<span>{`${strHp} HP`}</span>
{x.proxyHp > 0 && (
<>
{" + "}
<span>
{`${strProxyHp} HP`}
{" (proxy) "}
</span>
</>
)}
</div>
</div>
<div className="item-extra">
<span>{`${strHp} HP`}</span>
{x.proxyHp > 0 && (
<>
{" + "}
<span>
{`${strProxyHp} HP`}
{" (proxy) "}
</span>
</>
)}
</div>
</ListItem>
);
Expand Down

0 comments on commit 52eee9d

Please sign in to comment.