Merge pull request #3058 from janhq/fix/dropdown-my-model

fix: position dropdown on my model
This commit is contained in:
Van Pham 2024-06-20 16:23:40 +07:00 committed by GitHub
commit af92c1de72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ const MyModelList = ({ model }: Props) => {
{toGibibytes(model.metadata.size)} {toGibibytes(model.metadata.size)}
</Badge> </Badge>
<div className="flex items-center gap-x-4"> <div className="relative flex items-center gap-x-4">
{stateModel.loading && stateModel.model?.id === model.id ? ( {stateModel.loading && stateModel.model?.id === model.id ? (
<Badge <Badge
className="inline-flex items-center space-x-2" className="inline-flex items-center space-x-2"
@ -144,7 +144,7 @@ const MyModelList = ({ model }: Props) => {
</Button> </Button>
{more && ( {more && (
<div <div
className="absolute right-4 top-10 z-20 w-52 overflow-hidden rounded-lg border border-[hsla(var(--app-border))] bg-[hsla(var(--app-bg))] shadow-lg" className="absolute right-8 top-0 z-20 w-52 overflow-hidden rounded-lg border border-[hsla(var(--app-border))] bg-[hsla(var(--app-bg))] shadow-lg"
ref={setMenu} ref={setMenu}
> >
<Tooltip <Tooltip