Better icon dimensions

This commit is contained in:
2023-05-25 20:31:29 +02:00
parent 4c9f3914b7
commit e23acf46be
7 changed files with 9 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ export let state
<h1>{state.base.name}</h1>
<IconBlock icon_href={fs_thumbnail_url(state.root.id, state.base.path)}>
<IconBlock icon_href={fs_thumbnail_url(state.root.id, state.base.path, 256, 256)}>
Type: {state.base.file_type}<br/>
No preview is available for this file type. Download to view it locally.
<br/>

View File

@@ -75,7 +75,7 @@ const copy_magnet = () => {
<h1>{state.base.name}</h1>
<IconBlock icon_href={fs_node_icon(state.root.id, state.base)}>
<IconBlock icon_href={fs_node_icon(state.root.id, state.base, 256, 256)}>
{#if status === "finished"}
Created by: {torrent.created_by}<br/>
Comment: {torrent.comment}<br/>

View File

@@ -61,7 +61,7 @@ const recursive_size = (file) => {
<h1>{state.base.name}</h1>
<IconBlock icon_href={fs_node_icon(state.root.id, state.base)}>
<IconBlock icon_href={fs_node_icon(state.root.id, state.base, 256, 256)}>
Compressed size: {formatDataVolume(state.base.file_size, 3)}<br/>
Uncompressed size: {formatDataVolume(uncomp_size, 3)} (Ratio: {comp_ratio.toFixed(2)}x)<br/>
Uploaded on: {formatDate(state.base.date_created, true, true, true)}