From fb73cfa8ef429df9e43433477b2d85ec0bc92271 Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Sat, 17 Jan 2026 03:45:47 +0200 Subject: improve preview and paste/file interop --- template.html | 72 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/template.html b/template.html index c780b4b..c7a0649 100644 --- a/template.html +++ b/template.html @@ -15,7 +15,7 @@ --primary: #2da44e; --primary-hover: #2c974b; --danger: #cf222e; - --radius: 6px; + --radius: 3px; } * { @@ -47,6 +47,14 @@ font-weight: 500; } + .flex { + display: flex; + } + + .flex-1 { + flex:1; + } + .card { background: var(--card-bg); border: 1px solid var(--border); @@ -104,6 +112,7 @@ border-radius: var(--radius); font-weight: 600; cursor: pointer; + width: 100%; } input[type="submit"]:hover { @@ -112,6 +121,7 @@ /* Preview card */ #preview-container { + display: none; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); @@ -158,27 +168,25 @@
File Upload - -
You can also paste an image directly
- -
- -
- Submit -
- +
+
+ +
+ +
+
+
+

Image Preview

+ +
You can also paste an image directly and preview it.
+
+ - -
-

Image Preview

- -
Paste an image to preview it
-
{{end}} {{if .TextLink }} @@ -202,36 +210,44 @@ {{ end }} -- cgit v1.2.3