mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
SYL-4118: Mobile UI fixes in admin panel (#17442)

This commit is contained in:
commit
bcb3428ed3
9 changed files with 29 additions and 25 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{% set order = hookable_metadata.context.resource %}
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<div class="d-md-flex gap-2 align-items-center">
|
||||
<div class="d-flex gap-2 align-items-center">
|
||||
<h1 class="page-title">
|
||||
{{ 'sylius.ui.order'|trans }}
|
||||
#{{ order.number }}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
<div class="py-3">
|
||||
{% if order.hasPayments %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter table-borderless table-sm card-table">
|
||||
<tbody>
|
||||
{% for payment in order.payments %}
|
||||
|
|
@ -11,6 +12,7 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<span class="px-3 text-secondary italic" {{ sylius_test_html_attribute('no-payments') }}>{{ 'sylius.ui.no_payments'|trans }}</span>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<td class="w-1">
|
||||
<td class="w-1 px-2">
|
||||
<div class="d-flex justify-content-end">
|
||||
{% hook 'actions' %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% set shipment = hookable_metadata.context.shipment %}
|
||||
|
||||
<td class="px-3 py-2">
|
||||
<td class="px-3 py-2 text-nowrap">
|
||||
<div class="py-2">
|
||||
<strong {{ sylius_test_html_attribute('shipment-method') }}>{{ shipment.method.name }}</strong>
|
||||
<div class="text-secondary">{{ ux_icon('tabler:world') }} {{ shipment.method.zone }}</div>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
<div class="py-3">
|
||||
{% if order.hasShipments %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter table-borderless table-sm card-table">
|
||||
<tbody>
|
||||
{% for shipment in order.shipments %}
|
||||
|
|
@ -11,6 +12,7 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<span class="px-3 text-secondary italic">{{ 'sylius.ui.there_are_no_shipments_to_display'|trans }}</span>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div class="row mt-3">
|
||||
<div class="row mt-3 row-gap-2">
|
||||
{% hook 'title_block' %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<header class="navbar d-print-none">
|
||||
<div class="container-xl d-flex">
|
||||
<div class="container-xl d-flex gap-2 flex-nowrap">
|
||||
{% hook 'sylius_admin.common.component.navbar' with { _prefixes: [] } %}
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div class="nav align-items-center gap-3">
|
||||
<div class="nav align-items-center gap-3 flex-nowrap flex-shrink-0">
|
||||
{% hook 'items' %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<div class="d-flex flex-wrap sm-align-items-center gap-3" id="navbar-menu">
|
||||
<div class="d-flex flex-wrap gap-3 flex-shrink-1" id="navbar-menu">
|
||||
{% hook 'menu' %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue