From 312bc98c53c47efb74c8f04d136302f2cfcee307 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 1 Jan 2022 01:03:13 +0530 Subject: [PATCH] feat: better file input chooser --- .../components/http/BodyParameters.vue | 159 ++++++++---------- .../smart/{DeletableChip.vue => FileChip.vue} | 11 +- 2 files changed, 67 insertions(+), 103 deletions(-) rename packages/hoppscotch-app/components/smart/{DeletableChip.vue => FileChip.vue} (60%) diff --git a/packages/hoppscotch-app/components/http/BodyParameters.vue b/packages/hoppscotch-app/components/http/BodyParameters.vue index 20fd9b47c..ba1187b2d 100644 --- a/packages/hoppscotch-app/components/http/BodyParameters.vue +++ b/packages/hoppscotch-app/components/http/BodyParameters.vue @@ -54,13 +54,12 @@ />
- {{ file.name }} - +
@@ -85,21 +84,17 @@ /> - - - @@ -268,8 +242,7 @@ export default defineComponent({ .file-chips-wrapper { @apply flex; - @apply px-4; - @apply py-1; + @apply p-1; @apply w-0; } } diff --git a/packages/hoppscotch-app/components/smart/DeletableChip.vue b/packages/hoppscotch-app/components/smart/FileChip.vue similarity index 60% rename from packages/hoppscotch-app/components/smart/DeletableChip.vue rename to packages/hoppscotch-app/components/smart/FileChip.vue index a244a17a5..6fe91b22c 100644 --- a/packages/hoppscotch-app/components/smart/DeletableChip.vue +++ b/packages/hoppscotch-app/components/smart/FileChip.vue @@ -1,12 +1,7 @@ @@ -21,8 +16,4 @@ @apply bg-transparent; @apply border border-divider; } - -.close-button { - @apply p-0.5; -}