summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-08 17:55:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-08 17:55:41 +0900
commit4e96a490f85bbf6d17e1e654d8ef5d24450f88cb (patch)
tree9d3554edc4a2906fd3d24e999b5102456aebf279 /src/web
parent[Client] :art: (diff)
downloadsharkey-4e96a490f85bbf6d17e1e654d8ef5d24450f88cb.tar.gz
sharkey-4e96a490f85bbf6d17e1e654d8ef5d24450f88cb.tar.bz2
sharkey-4e96a490f85bbf6d17e1e654d8ef5d24450f88cb.zip
[Client] Improve activity home widget
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/home-widgets/activity.tag13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/web/app/desktop/tags/home-widgets/activity.tag b/src/web/app/desktop/tags/home-widgets/activity.tag
index 39878e91de..621702fa17 100644
--- a/src/web/app/desktop/tags/home-widgets/activity.tag
+++ b/src/web/app/desktop/tags/home-widgets/activity.tag
@@ -77,12 +77,19 @@
<mk-activity-home-widget-calender>
<svg viewBox="0 0 21 7" preserveAspectRatio="none">
+ <rect each={ data } class="day"
+ width="1" height="1"
+ riot-x={ x } riot-y={ date.weekday }
+ rx="1" ry="1"
+ fill="transparent">
+ <title>{ date.year }/{ date.month }/{ date.day }<br/>Post: { posts }, Reply: { replies }, Repost: { reposts }</title>
+ </rect>
<rect each={ data }
width="1" height="1"
riot-x={ x } riot-y={ date.weekday }
rx="1" ry="1"
fill={ color }
- style="transform: scale({ v });"/>
+ style="pointer-events: none; transform: scale({ v });"/>
<rect class="today"
width="1" height="1"
riot-x={ data[data.length - 1].x } riot-y={ data[data.length - 1].date.weekday }
@@ -101,6 +108,10 @@
> rect
transform-origin center
+ &.day
+ &:hover
+ fill rgba(0, 0, 0, 0.05)
+
</style>
<script>
this.data = this.opts.data;