diff --git a/CHANGELOG.md b/CHANGELOG.md index dda727f0..e94f1e48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ IMPORTANT NOTE: This version only works on CACTI 1.x++! --- develop --- +* feature: Present map previews as larger responsive titled cards + * refactor: Relocate the plugin's database schema provisioning (`weathermap_setup_table()`) out of `setup.php` into a dedicated `includes/database.php` module (function move only, no behaviour change) * feature: Add a root `manifest.json` file manifest plus an upgrade-time `weathermap_prune_files()` that removes tombstoned and dev-only paths while protecting whitelisted user data (`configs/`, `output/`) and `.git*`, backed by a `tests/bin/validate-manifest.php` CI gate that fails on manifest drift * dev: Add xdebug coverage reporting to CI and enforce patch coverage of changed lines diff --git a/css/weathermap.css b/css/weathermap.css index 32caa7ab..eab16326 100644 --- a/css/weathermap.css +++ b/css/weathermap.css @@ -95,3 +95,6 @@ body#wm_fullscreen { font-family: sans-serif; margin: 0; border: 0; padding: 0; .inplace .weathermapholder { display: none; } #wm_cyclecontrols a img { width: 16px; height: 16px; border: 0; } + +.wm-gallery-cards { padding: 12px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } +.wm-map-card { margin: 0; width: 480px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--border-color, #999); border-radius: 5px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.12); } diff --git a/weathermap-cacti-plugin.php b/weathermap-cacti-plugin.php index 1f722dec..35d53fa4 100644 --- a/weathermap-cacti-plugin.php +++ b/weathermap-cacti-plugin.php @@ -553,22 +553,18 @@ function weathermap_thumbview($limit_to_group = -1) { $imageformat = strtolower(read_config_option('weathermap_output_format')); print ''; - print '