fix(dashboard): align items inside quick view popover (#8847)
* fix(dashboard): align items inside quick view popover * chore: remove unwanted w-* classes
This commit is contained in:
+15
-23
@@ -53,24 +53,21 @@ function ActivityItems(props: ActivityItemsProps) {
|
|||||||
<Popover.Content
|
<Popover.Content
|
||||||
align="center"
|
align="center"
|
||||||
side="top"
|
side="top"
|
||||||
className="bg-ui-bg-component p-0"
|
className="bg-ui-bg-component p-0 max-w-[200px]"
|
||||||
>
|
>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
{!!itemsToSend?.length && (
|
{!!itemsToSend?.length && (
|
||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
<div className="txt-compact-small-plus">
|
<div className="txt-compact-small-plus mb-1">
|
||||||
{t("orders.activity.events.common.toSend")}
|
{t("orders.activity.events.common.toSend")}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col">
|
||||||
{itemsToSend?.map((item) => {
|
{itemsToSend?.map((item) => {
|
||||||
const originalItem = itemsMap?.get(item.item_id)!
|
const originalItem = itemsMap?.get(item.item_id)!
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className="flex items-center gap-x-3" key={item.id}>
|
||||||
className="flex flex-1 items-center gap-x-3"
|
|
||||||
key={item.id}
|
|
||||||
>
|
|
||||||
<Text size="small" className="text-ui-fg-subtle">
|
<Text size="small" className="text-ui-fg-subtle">
|
||||||
{item.quantity}x
|
{item.quantity}x
|
||||||
</Text>
|
</Text>
|
||||||
@@ -78,11 +75,10 @@ function ActivityItems(props: ActivityItemsProps) {
|
|||||||
<Thumbnail
|
<Thumbnail
|
||||||
src={originalItem?.variant?.product?.thumbnail}
|
src={originalItem?.variant?.product?.thumbnail}
|
||||||
/>
|
/>
|
||||||
<div className="">
|
|
||||||
<Text className="txt-compact-small text-ui-fg-subtle">
|
<Text className="txt-compact-small text-ui-fg-subtle truncate">
|
||||||
{`${originalItem?.variant?.title} · ${originalItem?.variant?.product?.title}`}
|
{`${originalItem?.variant?.title} · ${originalItem?.variant?.product?.title}`}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
@@ -94,19 +90,16 @@ function ActivityItems(props: ActivityItemsProps) {
|
|||||||
|
|
||||||
{!!itemsToReturn?.length && (
|
{!!itemsToReturn?.length && (
|
||||||
<div className="border-t-2 border-dotted p-3">
|
<div className="border-t-2 border-dotted p-3">
|
||||||
<div className="txt-compact-small-plus">
|
<div className="txt-compact-small-plus mb-1">
|
||||||
{t("orders.activity.events.common.toReturn")}
|
{t("orders.activity.events.common.toReturn")}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col">
|
||||||
{itemsToReturn?.map((item) => {
|
{itemsToReturn?.map((item) => {
|
||||||
const originalItem = itemsMap?.get(item.item_id)!
|
const originalItem = itemsMap?.get(item.item_id)!
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className="flex items-center gap-x-3" key={item.id}>
|
||||||
className="flex flex-1 items-center gap-x-3"
|
|
||||||
key={item.id}
|
|
||||||
>
|
|
||||||
<Text size="small" className="text-ui-fg-subtle">
|
<Text size="small" className="text-ui-fg-subtle">
|
||||||
{item.quantity}x
|
{item.quantity}x
|
||||||
</Text>
|
</Text>
|
||||||
@@ -114,11 +107,10 @@ function ActivityItems(props: ActivityItemsProps) {
|
|||||||
<Thumbnail
|
<Thumbnail
|
||||||
src={originalItem?.variant?.product?.thumbnail}
|
src={originalItem?.variant?.product?.thumbnail}
|
||||||
/>
|
/>
|
||||||
<div className="">
|
|
||||||
<Text className="txt-compact-small text-ui-fg-subtle">
|
<Text className="txt-compact-small text-ui-fg-subtle truncate">
|
||||||
{`${originalItem?.variant?.title} · ${originalItem?.variant?.product?.title}`}
|
{`${originalItem?.variant?.title} · ${originalItem?.variant?.product?.title}`}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in New Issue
Block a user