summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-11 05:57:24 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-11 05:57:24 +0900
commit6c0c5fbe9e39317e4261170cff189d29fb9252a6 (patch)
treee3d219c88eb6592eb803a7f45ad96d676ca66f5b /src/web
parentv2075 (diff)
downloadmisskey-6c0c5fbe9e39317e4261170cff189d29fb9252a6.tar.gz
misskey-6c0c5fbe9e39317e4261170cff189d29fb9252a6.tar.bz2
misskey-6c0c5fbe9e39317e4261170cff189d29fb9252a6.zip
[Client] Improve graph rendering of the server home widget
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/home-widgets/server.tag10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/web/app/desktop/tags/home-widgets/server.tag b/src/web/app/desktop/tags/home-widgets/server.tag
index 5652f1be7d..cd6f6ac6ac 100644
--- a/src/web/app/desktop/tags/home-widgets/server.tag
+++ b/src/web/app/desktop/tags/home-widgets/server.tag
@@ -102,7 +102,10 @@
stroke-width="1"/>
</mask>
</defs>
- <rect x="0" y="0" riot-width={ viewBoxX } riot-height={ viewBoxY } style="stroke: none; fill: url(#{ cpuGradientId }); mask: url(#{ cpuMaskId })"/>
+ <rect
+ x="-1" y="-1"
+ riot-width={ viewBoxX + 2 } riot-height={ viewBoxY + 2 }
+ style="stroke: none; fill: url(#{ cpuGradientId }); mask: url(#{ cpuMaskId })"/>
<text x="1" y="5">CPU <tspan>{ cpuP }%</tspan></text>
</svg>
<svg riot-viewBox="0 0 { viewBoxX } { viewBoxY }" preserveAspectRatio="none">
@@ -125,7 +128,10 @@
stroke-width="1"/>
</mask>
</defs>
- <rect x="0" y="0" riot-width={ viewBoxX } riot-height={ viewBoxY } style="stroke: none; fill: url(#{ memGradientId }); mask: url(#{ memMaskId })"/>
+ <rect
+ x="-1" y="-1"
+ riot-width={ viewBoxX + 2 } riot-height={ viewBoxY + 2 }
+ style="stroke: none; fill: url(#{ memGradientId }); mask: url(#{ memMaskId })"/>
<text x="1" y="5">MEM <tspan>{ memP }%</tspan></text>
</svg>
<style>