From 1ac8b40e3d40855fa8a7daf44f878dac403db6e2 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 22 Feb 2020 09:02:59 -0500 Subject: [PATCH] Code style --- src/types.h | 1 - web/css/dark.css | 9 +++------ web/js/dom.js | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/types.h b/src/types.h index 965c3ac..aab780d 100644 --- a/src/types.h +++ b/src/types.h @@ -95,7 +95,6 @@ typedef int (*read_func_t)(struct vfile *, void *buf, size_t size); typedef void (*close_func_t)(struct vfile *); typedef struct vfile { - union { int fd; struct archive *arc; diff --git a/web/css/dark.css b/web/css/dark.css index dc00cc4..a9a28f8 100644 --- a/web/css/dark.css +++ b/web/css/dark.css @@ -102,6 +102,7 @@ body { border-bottom: none; border-left: none; border-right: none; + padding: .25rem 0.5rem; } .list-group-item:first-child { @@ -199,7 +200,7 @@ body { max-width: 100%; max-height: 175px; margin: 0 auto 0; - padding: 3px 3px 0 3px; + padding: 3px 3px 0; width: auto; height: auto; } @@ -208,7 +209,7 @@ body { display: block; max-width: 64px; max-height: 64px; - margin: 0 auto 0; + margin: 0 auto; width: auto; height: auto; } @@ -391,10 +392,6 @@ option { margin-top: 1em; } -.list-group-item { - padding: .25rem 0.5rem; -} - .wrapper-sm { min-width: 64px; } diff --git a/web/js/dom.js b/web/js/dom.js index 670b8e4..cdcd351 100644 --- a/web/js/dom.js +++ b/web/js/dom.js @@ -183,7 +183,7 @@ function infoButtonCb(hit) { "bitrate", "artist", "album", "album_artist", "genre", "title", "font_name", "tag" ]); Object.keys(doc) - .filter(key => key.startsWith("_keyword.") || key.startsWith("_text.") || displayFields.has(key) || key.startsWith("exif_")) + .filter(key => key.startsWith("_keyword.") || key.startsWith("_text.") || displayFields.has(key) || key.startsWith("exif_")) .forEach(key => { tbody.append($("") .append($("").text(key))