SYL-4118: Mobile UI fixes in admin panel (#17442)

![image](https://github.com/user-attachments/assets/e582bae6-bfd2-4def-aa11-89b1159bbd2e)
This commit is contained in:
Grzegorz Sadowski 2024-11-08 12:28:36 +01:00 committed by GitHub
commit bcb3428ed3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 29 additions and 25 deletions

View file

@ -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 }}

View file

@ -2,15 +2,17 @@
<div class="py-3">
{% if order.hasPayments %}
<table class="table table-vcenter table-borderless table-sm card-table">
<tbody>
{% for payment in order.payments %}
<tr {{ sylius_test_html_attribute('payment') }}>
{% hook 'item' with { resource: order, payment } %}
</tr>
{% endfor %}
</tbody>
</table>
<div class="table-responsive">
<table class="table table-vcenter table-borderless table-sm card-table">
<tbody>
{% for payment in order.payments %}
<tr {{ sylius_test_html_attribute('payment') }}>
{% hook 'item' with { resource: order, payment } %}
</tr>
{% 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 %}

View file

@ -1,4 +1,4 @@
<td class="w-1">
<td class="w-1 px-2">
<div class="d-flex justify-content-end">
{% hook 'actions' %}
</div>

View file

@ -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>

View file

@ -2,15 +2,17 @@
<div class="py-3">
{% if order.hasShipments %}
<table class="table table-vcenter table-borderless table-sm card-table">
<tbody>
{% for shipment in order.shipments %}
<tr {{ sylius_test_html_attribute('shipment') }}>
{% hook 'item' with { shipment } %}
</tr>
{% endfor %}
</tbody>
</table>
<div class="table-responsive">
<table class="table table-vcenter table-borderless table-sm card-table">
<tbody>
{% for shipment in order.shipments %}
<tr {{ sylius_test_html_attribute('shipment') }}>
{% hook 'item' with { shipment } %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<span class="px-3 text-secondary italic">{{ 'sylius.ui.there_are_no_shipments_to_display'|trans }}</span>
{% endif %}

View file

@ -1,3 +1,3 @@
<div class="row mt-3">
<div class="row mt-3 row-gap-2">
{% hook 'title_block' %}
</div>

View file

@ -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>

View file

@ -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>

View file

@ -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>