From dea9d7f2b50af65f5925c8d8e8eae6d4865b3e9e Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Thu, 26 Sep 2024 16:09:15 -0400 Subject: [PATCH] [5.x] Dynamic asset folders (#10808) Co-authored-by: Jack McDade --- .../css/components/fieldtypes/assets.css | 2 +- .../fieldtypes/assets/AssetsFieldtype.vue | 123 +++++++++++++++++- resources/lang/en/fieldtypes.php | 2 + src/Actions/RenameAssetFolder.php | 2 +- src/Fieldtypes/Assets/Assets.php | 85 +++++++++++- 5 files changed, 204 insertions(+), 10 deletions(-) diff --git a/resources/css/components/fieldtypes/assets.css b/resources/css/components/fieldtypes/assets.css index cc7ef23e83..3ba77ac311 100644 --- a/resources/css/components/fieldtypes/assets.css +++ b/resources/css/components/fieldtypes/assets.css @@ -7,7 +7,7 @@ } .assets-fieldtype .assets-fieldtype-picker { - @apply flex flex-col @sm:flex-row items-start @sm:items-center px-4 py-2 bg-gray-200 dark:bg-dark-650 border dark:border-dark-900 rounded; + @apply flex 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; diff --git a/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue b/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue index 1d59e98826..b84d4bf0a7 100644 --- a/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue +++ b/resources/js/components/fieldtypes/assets/AssetsFieldtype.vue @@ -1,6 +1,12 @@