From a0109737669490687fd3d0b61013c0418907b33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Wed, 12 Jul 2017 02:54:32 -0400 Subject: [PATCH 1/2] Fix some button styling --- client/css/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/css/style.css b/client/css/style.css index 3ba3d46f..c28b085d 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -137,12 +137,14 @@ kbd { text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; word-spacing: 3px; + cursor: pointer; /* This is useful for ` + + + + + + + {{#equal type "image"}} + Open image + {{else}} + Visit page + {{/equal}} + diff --git a/client/views/index.js b/client/views/index.js index ca571bec..5c9da5dd 100644 --- a/client/views/index.js +++ b/client/views/index.js @@ -29,6 +29,7 @@ module.exports = { msg_preview_toggle: require("./msg_preview_toggle.tpl"), msg_unhandled: require("./msg_unhandled.tpl"), network: require("./network.tpl"), + image_viewer: require("./image_viewer.tpl"), unread_marker: require("./unread_marker.tpl"), user: require("./user.tpl"), user_filtered: require("./user_filtered.tpl"), diff --git a/client/views/msg_preview.tpl b/client/views/msg_preview.tpl index 5f56529c..24f4a599 100644 --- a/client/views/msg_preview.tpl +++ b/client/views/msg_preview.tpl @@ -1,15 +1,19 @@ {{#preview}} - +
{{#equal type "image"}} - + + + {{else}} {{#if thumb}} - + + + {{/if}} - + {{/equal}} - +
{{/preview}}