Skip to content
Merged

fix #116

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bizyui/js/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class FloatingButton {
this.show_cases = show_cases
this.button = $el("div.bizyair-comfy-floating-button", {
parent: document.body,
style: { top: app.menu.element.style.display === 'none' ? '': '60px' },
style: { top: app.menu.element.style.display === 'none' ? '': '100px' },
onmousedown: (e) => this.startDrag(e),
id: 'bizyair-menu-item',
}, [
Expand Down
2 changes: 1 addition & 1 deletion src/components/community/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</script>

<template>
<div class="w-64 bg-[#353535] h-full fixed left-0 top-0 border-r border-[#6E6E6E80]">
<div class="w-64 bg-[#353535] h-full absolute left-0 top-0 border-r border-[#6E6E6E80]">
<div class="flex flex-col p-2 pl-8 pr-2 h-full">
<div class="flex-1">
<h3 class="pt-2 pb-4 text-[#F9FAFB] font-['Inter'] text-[14px] font-medium leading-[14px]">
Expand Down
14 changes: 7 additions & 7 deletions src/components/community/detail/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1170,15 +1170,15 @@
</div>
</div>

<div className="flex w-full">
<div className="flex w-full overflow-auto">
<div className="w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]">
{{ t('community.detail.hash') }}
</div>
<div
className="flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"
className="flex-1 p-4 flex items-center overflow-auto border-b border-[rgba(78,78,78,0.50)] gap-2"
>
<span>
{{ currentVersion?.sign ? sliceString(currentVersion?.sign, 15) : '' }}
<span class="overflow-hidden text-ellipsis whitespace-nowrap">
{{ currentVersion?.sign }}
</span>
<vTooltips :tips="t('community.detail.copy')">
<svg
Expand Down Expand Up @@ -1338,9 +1338,9 @@
<div
class="flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"
>
{{ currentVersion?.file_name ? sliceString(currentVersion?.file_name, 20) : '' }} ({{
formatSize(currentVersion?.file_size)
}})
<span class="text-ellipsis overflow-hidden whitespace-nowrap"
>{{ currentVersion?.file_name }} ({{ formatSize(currentVersion?.file_size) }})</span
>
<span
v-if="model?.type === 'Workflow'"
class="cursor-pointer ml-2 hover:opacity-80"
Expand Down
12 changes: 5 additions & 7 deletions src/components/model-select/detail/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,10 @@
{{ t('community.detail.hash') }}
</div>
<div
className="flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"
className="flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2 w-full"
>
<span>
{{ currentVersion?.sign ? sliceString(currentVersion?.sign, 15) : '' }}
<span class="text-ellipsis overflow-hidden whitespace-nowrap">
{{ currentVersion?.sign }}
</span>
<vTooltips :tips="currentVersion?.sign ? t('community.detail.copy') : ''">
<svg
Expand Down Expand Up @@ -1115,11 +1115,9 @@
{{ t('community.detail.file') }}
</div>
<div
class="flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"
class="px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5 w-full text-ellipsis overflow-hidden whitespace-nowrap"
>
{{ currentVersion?.file_name ? sliceString(currentVersion?.file_name, 20) : '' }} ({{
formatSize(currentVersion?.file_size)
}})
{{ currentVersion?.file_name }} ({{ formatSize(currentVersion?.file_size) }})
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modules/vDefaultPic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<div :class="`w-full h-full relative overflow-hidden`">
<img
class="w-14 h-12 absolute left-1/2 top-1/2 -translate-x-1/2 -mt-24"
class="w-14 h-12 absolute left-1/2 top-1/2 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gOLpKaXQ0W+o1LqC7FBKewwIdMcb6/rhNjAonAt80XcJyupyhAb9JWDPCxEv0ymwxX1dDFcKwJ6CdT8oq6mpbLhjyut7ojYYH+dxVYjfFVz1tlQifWH2ODzeCnHfbp8L7Gi7tVK3QikIuD/o/RmYbmdhBc2Z8OfVvK2QGzgCf1fXS3TnHqRCv2cDdsEsaubrUKc0fWdqazzF5s2rFrFruK+BX+mIbqdRdqFuZWE2lXqzbZtZbWK7Q1fCVXA3dYHnl1oJ5Bpk+bLm5nlI5doXajIq8XQK0KyRv+9I5VxitYevtV4My+ogvMSxAYQGwCIDQDEBgBiAwCxAcQGAGIDALEBgNgAQGwAIDaA2ABAbAAgNgAQGwCIDQDEBhAbAIgNAMQGAGIDALEBxMZeABAbAIgNAMQGAGIDALEBxAYAYgPQX/mfAAMA+BIPEa9b6VYAAAAASUVORK5CYII="
alt=""
/>
Expand Down
77 changes: 39 additions & 38 deletions src/components/modules/vDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,49 +73,50 @@
<DialogOverlay
:class="
cn(
'fixed shadcn-root inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
'fixed shadcn-root inset-0 z-50 bg-black/80 flex justify-center items-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
props.layoutClass
)
"
/>
<DialogContent
v-bind="forwarded"
@interact-outside="
(event: any) => {
const target = event.target as HTMLElement
if (target?.closest('[data-sonner-toaster]')) return event.preventDefault()
}
"
:class="
cn(
'shadcn-root max-w-[900px] bg-[#222] fixed left-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
props.class
)
"
>
<DialogHeader>
<DialogTitle>
<slot name="title" />
</DialogTitle>
<DialogDescription>
<slot name="description" />
</DialogDescription>
</DialogHeader>
<div :class="props.contentClass">
<slot />
</div>
<DialogFooter>
<slot name="foot" />
</DialogFooter>
<DialogClose
v-if="showClose"
class="absolute bg-transparent right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
@click="closeDialog"
<DialogContent
v-bind="forwarded"
:class="
cn(
'shadcn-root max-w-[900px] relative bg-[#222] grid w-full gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',
props.class
)
"
@interact-outside="
(event: any) => {
const target = event.target as HTMLElement
if (target?.closest('[data-sonner-toaster]')) return event.preventDefault()
}
"
>
<X class="w-4 h-4" />
<span class="sr-only">Close</span>
</DialogClose>
</DialogContent>
<DialogHeader>
<DialogTitle>
<slot name="title" />
</DialogTitle>
<DialogDescription>
<slot name="description" />
</DialogDescription>
</DialogHeader>
<div :class="props.contentClass">
<slot />
</div>
<DialogFooter>
<slot name="foot" />
</DialogFooter>
<DialogClose
v-if="showClose"
class="absolute bg-transparent right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
@click="closeDialog"
>
<X class="w-4 h-4" />
<span class="sr-only">Close</span>
</DialogClose>
</DialogContent>
</DialogOverlay>
</DialogPortal>
</Dialog>
</template>
6 changes: 4 additions & 2 deletions src/components/modules/vImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
</script>

<template>
<div :class="`w-full h-full relative ${src ? 'bg-black' : ''} overflow-hidden image-box`">
<div
:class="`w-full h-full relative ${src ? 'bg-black' : ''} overflow-hidden image-box flex justify-center items-center`"
>
<img
:src="src"
:alt="alt"
:class="`absolute ${aspectRatio ? 'w-[100%] h-auto' : 'w-auto h-[100%]'} left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-all hover:scale-125`"
:class="`${aspectRatio ? 'w-[100%] h-auto' : 'w-auto h-[100%]'} transition-all hover:scale-125`"
/>
</div>
</template>
11 changes: 9 additions & 2 deletions src/components/modules/vShadet/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@
const emit = defineEmits(['update:open'])
</script>
<template>
<div :class="cn('w-[100vw] h-[100vh] fixed inset-0 z-50 bg-black/80', props.z)">
<div
:class="
cn(
'w-[100vw] h-[100vh] fixed inset-0 z-50 bg-black/80 flex justify-center items-center',
props.z
)
"
>
<div
:class="
cn(
'flex p-10 overflow-hidden max-w-[500px] bg-[#222] fixed left-1/2 top-1/2 w-full -translate-x-1/2 -translate-y-1/2 gap-2 border shadow-lg sm:rounded-lg',
'flex p-10 overflow-hidden max-w-[500px] bg-[#222] w-full gap-2 border shadow-lg sm:rounded-lg',
props.class
)
"
Expand Down
25 changes: 14 additions & 11 deletions src/components/modules/vUpload/vUploadImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@
<!-- 视频预览 -->
<video
v-if="isVideo && mediaSrc"
ref="videoRef"
:src="mediaSrc"
class="block object-cover w-full h-full rounded-lg absolute left-0 top-0 z-10"
muted
ref="videoRef"
@load="handleVideoLoad"
/>

Expand All @@ -159,22 +159,25 @@

<!-- 占位符 -->
<div v-if="!mediaSrc">
<div
class="w-[64%] h-1 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-slate-400 rounded-md"
></div>
<div
class="w-1 h-[64%] absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-slate-400 rounded-md"
></div>
<div class="w-full h-full absolute left-0 top-0 flex justify-center items-center">
<div class="w-[64%] h-1 bg-slate-400 rounded-md"></div>
</div>
<div class="w-full h-full absolute left-0 top-0 flex justify-center items-center">
<div class="w-1 h-[64%] bg-slate-400 rounded-md"></div>
</div>
</div>

<Trash2
class="absolute right-2 top-2 z-30 cursor-pointer text-white bg-black/50 rounded p-1"
v-if="mediaSrc"
class="absolute right-2 top-2 z-30 cursor-pointer text-white bg-black/50 rounded p-1"
@click="clearVal"
/>
</div>
<div v-if="showLoading" class="fixed w-[100vw] h-[100vh] left-0 top-0 bg-black/40 z-13000">
<div class="fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
<div
v-if="showLoading"
class="fixed w-[100vw] h-[100vh] left-0 top-0 bg-black/40 z-13000 flex justify-center items-center flex-col"
>
<div class="pb-2">
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 24 24">
<circle cx="12" cy="2" r="0" fill="currentColor">
<animate
Expand Down Expand Up @@ -266,7 +269,7 @@
</circle>
</svg>
</div>
<div class="fixed left-1/2 top-[60%] -translate-x-1/2 text-white">
<div class="text-white">
{{ $t('vUpload.loading') }}
</div>
</div>
Expand Down