feat: show thumbnails in browser listing, fix object actions overflow

This commit is contained in:
2024-10-14 00:14:34 +00:00
parent 37027396ca
commit 1b1b815443
8 changed files with 87 additions and 33 deletions
@@ -12,7 +12,7 @@ import { shareDialog } from "./share-dialog";
type Props = {
prefix?: string;
object: Pick<Object, "objectKey" | "downloadUrl">;
object: Pick<Object, "objectKey" | "url">;
end?: boolean;
};
@@ -30,7 +30,7 @@ const ObjectActions = ({ prefix = "", object, end }: Props) => {
});
const onDownload = () => {
window.open(API_URL + object.downloadUrl, "_blank");
window.open(API_URL + object.url + "?dl=1", "_blank");
};
const onDelete = () => {