From 80bdb2de9d4008d83b2441f20108109ea9810a77 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 22 Apr 2022 07:34:44 +0800 Subject: [PATCH] add image height config --- conf/app.php | 6 ++++++ themes/googleimage/views/layout/main.php | 8 +++----- themes/googleimage/views/site/index.php | 3 +++ www/css/googleimage.css | 9 ++++----- www/js/googleimage.js | 3 +++ 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/conf/app.php b/conf/app.php index fac0474..a564fb6 100644 --- a/conf/app.php +++ b/conf/app.php @@ -18,4 +18,10 @@ return array( //for debug, log directory: ../runtime/logs/ 'debug' => false, + + //for themes + 'googleimage' => [ + 'imageHeight' => 180, //图片高度,单位:px + + ], ); diff --git a/themes/googleimage/views/layout/main.php b/themes/googleimage/views/layout/main.php index 7fdbee6..dd47496 100644 --- a/themes/googleimage/views/layout/main.php +++ b/themes/googleimage/views/layout/main.php @@ -17,11 +17,9 @@ Logo of FileSite.io FileSite.io -
- - - -
+ + + + .img-item img{height: px;} +