Skip to content

Commit f7dcbe1

Browse files
authored
Fluid chart images (hestiacp#3248)
* Responsive chart images * Bump npm dependencies
1 parent 7955903 commit f7dcbe1

File tree

6 files changed

+615
-501
lines changed

6 files changed

+615
-501
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
},
2424
"devDependencies": {
2525
"@prettier/plugin-php": "^0.19.3",
26-
"@typescript-eslint/eslint-plugin": "^5.48.2",
27-
"@typescript-eslint/parser": "^5.48.2",
26+
"@typescript-eslint/eslint-plugin": "^5.50.0",
27+
"@typescript-eslint/parser": "^5.50.0",
2828
"cssnano": "^5.1.14",
29-
"eslint": "^8.32.0",
29+
"eslint": "^8.33.0",
3030
"eslint-config-prettier": "^8.6.0",
3131
"eslint-plugin-editorconfig": "^4.0.2",
3232
"husky": "^8.0.3",
@@ -36,7 +36,7 @@
3636
"postcss-cli": "^10.1.0",
3737
"postcss-import": "^15.1.0",
3838
"postcss-path-replace": "^1.0.4",
39-
"postcss-preset-env": "^7.8.3",
39+
"postcss-preset-env": "^8.0.1",
4040
"postcss-size": "^4.0.1",
4141
"prettier": "^2.8.3",
4242
"prettier-plugin-nginx": "^1.0.2",
@@ -45,8 +45,8 @@
4545
"stylelint": "^14.16.1",
4646
"stylelint-config-prettier": "^9.0.4",
4747
"stylelint-config-standard": "^29.0.0",
48-
"typescript": "^4.9.4",
49-
"vitepress": "1.0.0-alpha.40",
50-
"vue": "^3.2.45"
48+
"typescript": "^4.9.5",
49+
"vitepress": "1.0.0-alpha.45",
50+
"vue": "^3.2.47"
5151
}
5252
}

web/css/src/utilities.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
padding-left: 30px !important;
114114
}
115115

116+
.u-rounded {
117+
border-radius: var(--border-radius-base) !important;
118+
}
119+
116120
.u-pos-relative {
117121
position: relative !important;
118122
}
@@ -139,6 +143,11 @@
139143
align-items: center !important;
140144
}
141145

146+
.u-image-fluid {
147+
max-width: 100% !important;
148+
height: auto !important;
149+
}
150+
142151
.u-list-bulleted {
143152
list-style: disc !important;
144153
padding-left: 40px !important;

web/css/themes/default.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/css/themes/flat.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/templates/pages/list_rrd.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
<div class="form-container form-container-wide">
2020
<!-- Begin graph list item loop -->
2121
<?php foreach ($data as $key => $value) { ?>
22-
<div class="u-mb20">
23-
<h2 class="l-unit__name separate">
22+
<div class="u-mb40">
23+
<h2 class="u-mb20">
2424
<?= _($data[$key]["TITLE"]) ?>
2525
</h2>
26-
<div>
27-
<a href="/list/rrd/image.php?/rrd/<?=$data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png"?>" class="u-block" target="_blank">
28-
<img class="graph-rounded" src="/list/rrd/image.php?/rrd/<?=$data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png"?>" alt="">
29-
</a>
30-
</div>
26+
<a href="/list/rrd/image.php?/rrd/<?=$data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png"?>" class="u-block" target="_blank">
27+
<img class="u-image-fluid u-rounded" src="/list/rrd/image.php?/rrd/<?=$data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png"?>" alt="">
28+
</a>
3129
</div>
3230
<?php } ?>
3331
</div>

0 commit comments

Comments
 (0)