Commit 85a95d77e6d4d99d847ea61ab8ba22e2d87c217e

Thomas de Grivel 2024-10-10T11:04:01

wip fx speed

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/httpd/fx/app/views/fx_view.kc3 b/httpd/fx/app/views/fx_view.kc3
index 9862b22..ab43998 100644
--- a/httpd/fx/app/views/fx_view.kc3
+++ b/httpd/fx/app/views/fx_view.kc3
@@ -38,7 +38,7 @@ defmodule FXView do
     # puts("mime_first: #{inspect(mime_first)}")
     file_path = "/file" + Str.slice(path, 4, -1)
     preview = if (mime_first == :image) do
-      if (size == :small && file_size > 16024024)) do
+      if (size == :small && file_size > 16024024) do
         ""
       else
         """<img class="#{size}" src="#{URL.escape(file_path)}" alt="#{HTML.escape(path)}" />"""