mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Refactor
This commit is contained in:
parent
4d0c0025ca
commit
7fe2666cd2
@ -1,8 +1,8 @@
|
||||
<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');
|
||||
|
Loading…
Reference in New Issue
Block a user