gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: style fixes thanks to Torsten Gr


From: gnunet
Subject: [taler-merchant] branch master updated: style fixes thanks to Torsten Grothoff
Date: Wed, 29 Jul 2020 18:36:30 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 55414c6  style fixes thanks to Torsten Grothoff
55414c6 is described below

commit 55414c617e1ea4e656dac48e88f99eb560f54abd
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 29 18:36:27 2020 +0200

    style fixes thanks to Torsten Grothoff
---
 contrib/request_payment.must                     | 15 +++++++++------
 src/backend/taler-merchant-httpd_get-orders-ID.c | 12 +++++++-----
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/contrib/request_payment.must b/contrib/request_payment.must
index 2850808..7d6effc 100644
--- a/contrib/request_payment.must
+++ b/contrib/request_payment.must
@@ -51,13 +51,16 @@
 .qr {
     margin: auto;
     text-align: center;
-    transition: transform .2s;
-    height: 25vh;
-    width: 25vh;
-    font-size: 0.43vh;
 }
-.qr:hover {
-    transform: scale(1.5);
+.qrtext {
+    width: max-content;
+    margin: auto;
+    transition: font-size 0.2s;
+    font-family: 'Lucida Console', Monaco, monospace;
+    font-size: 0.5em;
+}
+.qrtext:hover {
+    font-size: 1em;
 }
 .talerbar {
     margin: 0;
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c 
b/src/backend/taler-merchant-httpd_get-orders-ID.c
index 6b0b981..471c2ba 100644
--- a/src/backend/taler-merchant-httpd_get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_get-orders-ID.c
@@ -554,23 +554,25 @@ create_qrcode (const char *uri)
   QRinput_free (qri);
   /* FIXME-Dold: generate <img> with inline SVG instead of <pre> here! */
   GNUNET_buffer_write_str (&buf,
-                           "<pre><br>\n<br>\n<br>\n<br>\n");
+                           "<p class=\"qrtext\"><br>\n<br>\n<br>\n<br>\n");
   for (unsigned int y = 0; y<qrc->width; y++)
   {
     GNUNET_buffer_write_str (&buf,
-                             "    ");
+                             "&nbsp;&nbsp;&nbsp;&nbsp;");
     for (unsigned int x = 0; x<qrc->width; x++)
     {
       unsigned int off = x + y * qrc->width;
       GNUNET_buffer_write_fstr (&buf,
                                 "%s",
-                                (0 != (qrc->data[off] & 1)) ? "██" : "  ");
+                                (0 != (qrc->data[off] & 1))
+                                ? "██"
+                                : "&nbsp;&nbsp;");
     }
     GNUNET_buffer_write_str (&buf,
-                             "    <br>");
+                             "&nbsp;&nbsp;&nbsp;&nbsp;<br>");
   }
   GNUNET_buffer_write_str (&buf,
-                           "<br>\n<br>\n<br>\n<br>\n</pre>");
+                           "<br>\n<br>\n<br>\n<br>\n</p>");
   QRcode_free (qrc);
   return GNUNET_buffer_reap_str (&buf);
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]