Display view more list inline
[MAILPOET-5492]
This commit is contained in:
@@ -29,16 +29,26 @@
|
|||||||
|
|
||||||
.mailpoet-automations-analytics-order-products {
|
.mailpoet-automations-analytics-order-products {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
column-gap: 8px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.quantity {
|
.quantity {
|
||||||
color: $color-gutenberg-grey-700;
|
color: $color-gutenberg-grey-700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.woocommerce-view-more-list {
|
.woocommerce-view-more-list {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
height: auto;
|
||||||
|
line-height: inherit;
|
||||||
|
margin: 0;
|
||||||
|
overflow: visible;
|
||||||
|
padding: 0;
|
||||||
text-decoration: underline dotted;
|
text-decoration: underline dotted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
import { ViewMoreList as WooViewMoreList } from '@woocommerce/components';
|
import { ViewMoreList as WooViewMoreList } from '@woocommerce/components';
|
||||||
import { Fragment } from '@wordpress/element';
|
|
||||||
import { OrderDetails } from '../../../../store';
|
import { OrderDetails } from '../../../../store';
|
||||||
|
|
||||||
// WooViewMoreList has return type annotated as Object
|
// WooViewMoreList has return type annotated as Object
|
||||||
@@ -11,10 +10,10 @@ export function ProductsCell({ order }: { order: OrderDetails }) {
|
|||||||
const items =
|
const items =
|
||||||
order.products.length > 0
|
order.products.length > 0
|
||||||
? order.products.map((item) => (
|
? order.products.map((item) => (
|
||||||
<Fragment key={`key-${item.id}`}>
|
<span key={`key-${item.id}`}>
|
||||||
{item.name}
|
{item.name}
|
||||||
<span className="quantity">({item.quantity}×)</span>
|
<span className="quantity">({item.quantity}×)</span>
|
||||||
</Fragment>
|
</span>
|
||||||
))
|
))
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user