refactor: handle max-width

This commit is contained in:
Thanaphon Frappet 2024-10-22 17:05:14 +07:00
parent 3fd14db1ea
commit 089f23b348

View file

@ -375,7 +375,7 @@ watch(
<div class="column col justify-between">
<span
class="text-weight-bold ellipsis-2-lines"
:style="`max-width: ${$q.screen.gt.sm ? '25vw' : '20vw'}`"
:style="`max-width: ${$q.screen.gt.sm ? (!readonly ? '10vw' : '25vw') : '20vw'}`"
>
{{ product.name }}
<q-tooltip>