Skip to content
Snippets Groups Projects
Commit d1393d31 authored by syuilo's avatar syuilo
Browse files

Refactor

parent 46f3c0f9
No related branches found
No related tags found
No related merge requests found
<mk-activity-table>
<svg if={ data } ref="canvas" viewBox="0 0 53 7" preserveAspectRatio="none">
<rect each={ d, i in data } width="0.8" height="0.8"
riot-x={ d.x } riot-y={ d.date.weekday }
fill={ d.color }></rect>
<rect each={ data } width="1" height="1"
riot-x={ x } riot-y={ date.weekday }
fill={ color }></rect>
</svg>
<style>
:scope
......@@ -14,6 +14,10 @@
> svg
display block
> rect
transform-origin center
transform scale(0.9)
</style>
<script>
this.mixin('api');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment