From e4cf273284c11565f6b1688539ad4024d70c5f6c Mon Sep 17 00:00:00 2001 From: patrickjunod Date: Sun, 16 Feb 2025 21:26:41 +0300 Subject: [PATCH 1/3] [5.x] Fix issue with AssetsFieldtype upload controls hidden on @sm size --- resources/css/components/fieldtypes/assets.css | 6 +++--- .../js/components/fieldtypes/assets/AssetsFieldtype.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/css/components/fieldtypes/assets.css b/resources/css/components/fieldtypes/assets.css index 3ba77ac311..7f637739fa 100644 --- a/resources/css/components/fieldtypes/assets.css +++ b/resources/css/components/fieldtypes/assets.css @@ -7,14 +7,14 @@ } .assets-fieldtype .assets-fieldtype-picker { - @apply flex items-center px-4 py-2 bg-gray-200 dark:bg-dark-650 border dark:border-dark-900 rounded; + @apply flex flex-wrap items-center px-4 py-2 bg-gray-200 dark:bg-dark-650 border dark:border-dark-900 rounded; &.is-expanded { @apply border-b-0 rounded-b-none; } .asset-upload-control { - @apply mt-2 @sm:rtl:mr-4 @sm:ltr:ml-4 @sm:mt-0 text-xs text-gray-600 leading-tight; + @apply @sm:rtl:mr-4 @sm:ltr:ml-4 @sm:mt-0 text-xs text-gray-600 leading-tight; } .upload-text-button { @@ -30,7 +30,7 @@ } .assets-fieldtype .asset-upload-control { - @apply hidden @xs:inline-block; + @apply inline-block; } diff --git a/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue b/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue index 4183f35a63..8e04ce630a 100644 --- a/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue +++ b/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue @@ -25,7 +25,7 @@