浏览代码

feat(station card): Accessibility/hover titles for current song & users

Owen Diffey 5 年之前
父节点
当前提交
c1806a8210
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      frontend/components/pages/Home.vue

+ 11 - 1
frontend/components/pages/Home.vue

@@ -141,12 +141,22 @@
 							<span
 								v-if="station.currentSong.title"
 								class="songTitle"
+								:title="
+									'Now Playing: ' + station.currentSong.title
+								"
 								>{{ station.currentSong.title }}</span
 							>
 							<span v-else class="songTitle"
 								>No Songs Playing</span
 							>
-							<div class="right">
+							<div
+								class="right"
+								:title="
+									'There are currently ' +
+										station.userCount +
+										' users listening'
+								"
+							>
 								<i class="material-icons">people</i>
 								<span class="currentUsers">{{
 									station.userCount