image fixes
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user