allow tapping on body to clear tooltip

This commit is contained in:
Damien Elmes 2020-08-21 15:15:19 +10:00
parent ef47ac96a7
commit 718b45b505

View File

@ -97,6 +97,12 @@
const all = i18n.tr(i18n.TR.STATISTICS_RANGE_ALL_HISTORY); const all = i18n.tr(i18n.TR.STATISTICS_RANGE_ALL_HISTORY);
</script> </script>
<style>
.no-focus-outline:focus {
outline: 0;
}
</style>
<div class="range-box"> <div class="range-box">
<div class="spin {refreshing ? 'active' : ''}"></div> <div class="spin {refreshing ? 'active' : ''}"></div>
@ -136,15 +142,17 @@
</div> </div>
<div class="range-box-pad" /> <div class="range-box-pad" />
{#if sourceData} <div tabindex="-1" class="no-focus-outline">
<TodayStats {sourceData} {i18n} /> {#if sourceData}
<FutureDue {sourceData} {i18n} /> <TodayStats {sourceData} {i18n} />
<CalendarGraph {sourceData} {revlogRange} {i18n} {nightMode} /> <FutureDue {sourceData} {i18n} />
<ReviewsGraph {sourceData} {revlogRange} {i18n} /> <CalendarGraph {sourceData} {revlogRange} {i18n} {nightMode} />
<CardCounts {sourceData} {i18n} /> <ReviewsGraph {sourceData} {revlogRange} {i18n} />
<IntervalsGraph {sourceData} {i18n} /> <CardCounts {sourceData} {i18n} />
<EaseGraph {sourceData} {i18n} /> <IntervalsGraph {sourceData} {i18n} />
<HourGraph {sourceData} {revlogRange} {i18n} /> <EaseGraph {sourceData} {i18n} />
<ButtonsGraph {sourceData} {revlogRange} {i18n} /> <HourGraph {sourceData} {revlogRange} {i18n} />
<AddedGraph {sourceData} {i18n} /> <ButtonsGraph {sourceData} {revlogRange} {i18n} />
{/if} <AddedGraph {sourceData} {i18n} />
{/if}
</div>