image fixes

This commit is contained in:
2026-05-14 21:15:33 +03:00
parent ef29e4d261
commit 8cd80c016f
14 changed files with 180 additions and 38 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
<script>
import Icon from "../common/Icon.svelte";
import { imgurl } from "./imageserver.js";
import { fileurl, imgurl } from "./imageserver.js";
import { getContext } from "svelte";
export let file;
@@ -11,7 +11,6 @@
let fileSide;
let fontSize;
console.log({ channel });
if (size == "large") {
imageSide = 256;
fileSide = 32;
@@ -36,7 +35,8 @@
{#if file.mime.startsWith("image")}
<!-- href={imgurl(record)} -->
<a
href="{channel.lucentUrl}/files/{file.id}"
target="_blank"
href={fileurl(channel, file)}
title={file.filename}
style="width:{imageSide}px;height:{imageSide}px"
>