mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 09:36:44 -06:00
Refactor
This commit is contained in:
parent
46f3c0f9f8
commit
d1393d31ee
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
<mk-activity-table>
|
<mk-activity-table>
|
||||||
<svg if={ data } ref="canvas" viewBox="0 0 53 7" preserveAspectRatio="none">
|
<svg if={ data } ref="canvas" viewBox="0 0 53 7" preserveAspectRatio="none">
|
||||||
<rect each={ d, i in data } width="0.8" height="0.8"
|
<rect each={ data } width="1" height="1"
|
||||||
riot-x={ d.x } riot-y={ d.date.weekday }
|
riot-x={ x } riot-y={ date.weekday }
|
||||||
fill={ d.color }></rect>
|
fill={ color }></rect>
|
||||||
</svg>
|
</svg>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
|
@ -14,6 +14,10 @@
|
||||||
> svg
|
> svg
|
||||||
display block
|
display block
|
||||||
|
|
||||||
|
> rect
|
||||||
|
transform-origin center
|
||||||
|
transform scale(0.9)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
this.mixin('api');
|
this.mixin('api');
|
||||||
|
|
Loading…
Reference in a new issue