Skip to content

Commit

Permalink
anki20 compat: Fix options link shown when heatmap data empty
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Oct 28, 2018
1 parent 0380b2f commit 6fa8239
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions resources/web/review-heatmap.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,21 @@ select.hm-sel:active, select.hm-sel:focus {
background: #e6e6e6;
}

/* Heatmap links */
/* ################################################################### */

/* we use these instead of regular links to prevent bugs with page navigation,
prevent the link color from changing on click, etc.*/

.linkspan {
cursor:pointer;
color:blue;
text-decoration:underline;
}

.night_mode .linkspan {
color: white;
}

/* Streak stats */
/* ################################################################### */
Expand All @@ -197,6 +212,9 @@ select.hm-sel:active, select.hm-sel:focus {
}





/* Color themes */
/* ################################################################### */

Expand Down
2 changes: 1 addition & 1 deletion src/review_heatmap/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@
"""

html_info_nodata = """
No activity data to show <a href="" onclick='return pybridge("revhm_opts")'>(options)</a>.
No activity data to show (<span class="linkspan" onclick='pybridge("revhm_opts");'>options</span>).
"""

0 comments on commit 6fa8239

Please sign in to comment.