This commit is contained in:
2025-09-08 14:43:54 +08:00
parent f8fa9069a9
commit 62d10a989d
2 changed files with 12 additions and 4 deletions

View File

@@ -11,11 +11,19 @@ export default function showPopup(
const div = document.createElement("div");
div.style.position = "fixed";
if (window.innerWidth > 400) {
if (eRect.x > window.innerWidth / 2) {
div.style.right = `${window.innerWidth - eRect.x}px`;
} else {
div.style.left = `${eRect.x}px`;
}
} else {
if (eRect.x > window.innerWidth / 2) {
div.style.right = `8px`;
} else {
div.style.left = `8px`;
}
}
if (eRect.y > window.innerHeight / 2) {
div.style.bottom = `${window.innerHeight - eRect.y}px`;
} else {

View File

@@ -728,7 +728,7 @@ function FileTile({ file }: { file: RFile }) {
{file.is_redirect ? t("Redirect") : fileSizeToString(file.size)}
</Badge>
{
<Badge
file.hash && <Badge
className={
"badge-soft badge-accent text-xs mr-2 break-all hidden sm:inline-flex"
}