Browse Source

refactor(gui-v2): add visual hint for dropzone and add padding to dropzone box

pull/3211/head
braks 2 years ago
parent
commit
ea24baea05
  1. 10
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue

10
packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue

@ -92,13 +92,15 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) {
</script> </script>
<template> <template>
<div ref="dropZone" class="h-full w-full text-gray-400 flex items-center justify-center relative"> <div ref="dropZone" class="h-full w-full text-gray-600 flex items-center justify-center relative">
<general-overlay <general-overlay
v-model="isOverDropZone" :model-value="true"
:class="[isOverDropZone ? 'bg-gray-300/75 border-primary shadow' : 'bg-gray-100/25 border-gray-500 pointer-events-none']"
inline inline
class="text-white text-3xl shadow-pink-500 shadow-inner bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" style="top: 20%; left: 20%; right: 20%; bottom: 20%"
class="text-3xl flex items-center justify-center gap-2 border-1 border-dashed rounded"
> >
<MaterialSymbolsFileCopyOutline class="text-pink-500" /> Drop here <template v-if="isOverDropZone"> <MaterialSymbolsFileCopyOutline class="text-pink-500" /> Drop here </template>
</general-overlay> </general-overlay>
<div class="flex flex-col gap-6 items-center justify-center md:w-1/2 mx-auto text-center"> <div class="flex flex-col gap-6 items-center justify-center md:w-1/2 mx-auto text-center">

Loading…
Cancel
Save