Skip to content

Commit

Permalink
fix: spacing for claimable orders
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Sep 3, 2024
1 parent dea7c21 commit dcfe68b
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions packages/web/components/complex/orders-history/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,19 @@ const TableGroupHeader = ({

if (group === "filled") {
return (
<tr style={style} className="flex items-center">
<tr
style={style}
className={classNames("grid grid-cols-[auto_180px] items-center")}
>
<td colSpan={5} className="!p-0">
<div className="flex w-full items-end justify-between pr-4">
<div className="relative flex items-end gap-3 pt-5">
<div className="flex items-center gap-2 pb-3">
<span className="sm:subtitle1 text-h6 font-h6">
<div className="flex w-full items-center justify-between pr-4">
<div className="relative flex items-center gap-3">
<div className="flex items-center gap-2">
<span className="sm:subtitle1 text-h5 font-h5">
{t("limitOrders.orderHistoryHeaders.filled")}
</span>
<div className="flex h-6 w-6 items-center justify-center rounded-full bg-[#A51399]">
<span className="md:body2 pb-4 pt-8 text-h6 font-h6">
<span className="md:body2 text-subtitle font-subtitle">
{filledOrdersCount}
</span>
</div>
Expand All @@ -369,16 +372,18 @@ const TableGroupHeader = ({
</div>
</GenericDisclaimer>
</div>
<button
className="flex items-center justify-center rounded-[48px] bg-wosmongton-700 py-3 px-4 disabled:opacity-50"
onClick={claim}
disabled={claiming}
>
{claiming && <Spinner className="mr-2 !h-2 !w-2" />}
<span className="subtitle1">{t("limitOrders.claimAll")}</span>
</button>
</div>
</td>
<td className="flex items-center justify-end">
<button
className="flex items-center justify-center rounded-[48px] bg-wosmongton-700 py-3 px-4 disabled:opacity-50"
onClick={claim}
disabled={claiming}
>
{claiming && <Spinner className="mr-2 !h-2 !w-2" />}
<span className="subtitle1">{t("limitOrders.claimAll")}</span>
</button>
</td>
</tr>
);
}
Expand Down Expand Up @@ -577,14 +582,18 @@ const TableOrderRow = memo(
</p>
</div>
</td>
<td className="!px-0 !text-left xl:!py-0 md:hidden">
<td className="!px-0 !text-left xl:!py-0 md:hidden">
<div className="flex flex-col gap-1">
<p className="body2 text-osmoverse-300">{formattedTime}</p>
<p>{formattedDate}</p>
</div>
</td>
<td className="!px-0 !text-left xl:!py-0">
<div className="xl: flex flex-col gap-1 xl:items-end xl:justify-end">
<td
className={classNames("!px-0 !text-left xl:!py-0", {
"flex items-center xl:justify-end": status === "filled",
})}
>
<div className="flex flex-col gap-1 xl:items-end xl:justify-end">
{statusComponent}
<span
className={classNames(
Expand Down

0 comments on commit dcfe68b

Please sign in to comment.