From 1cee86487512cf32d57e964ddd25bb29a007f266 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Mon, 10 Jan 2022 03:50:48 +0100 Subject: [PATCH] Fix padding and alignment inside revlog table (#1576) * Use nested tables in revlog This allows for centered rows, while still preserving internal alignment. * Fix hidden columns * Replace inner tables with flexbox divs * Replace revlog table with flexbox divs * Replace flex-gap in revlog Unsupported on iOS and Qt5. --- ts/card-info/Revlog.svelte | 127 ++++++++++++++++++++++++++----------- 1 file changed, 90 insertions(+), 37 deletions(-) diff --git a/ts/card-info/Revlog.svelte b/ts/card-info/Revlog.svelte index 8ba2733d4..44e011566 100644 --- a/ts/card-info/Revlog.svelte +++ b/ts/card-info/Revlog.svelte @@ -77,47 +77,100 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {#if revlog.length > 0} - - - - - - - - - - {#each revlogRows as row, _index} - - - - - - - - - {/each} -
{tr2.cardStatsReviewLogDate()}{tr2.cardStatsReviewLogRating()}{tr2.cardStatsInterval()}{tr2.cardStatsReviewLogTimeTaken()}
{row.date} @ {row.time}{row.rating}{row.interval}{row.takenSecs}
+
+
+
{tr2.cardStatsReviewLogDate()}
+
+ {#each revlogRows as row, _index} +
{row.date} @ {row.time}
+ {/each} +
+
+ +
+
{tr2.cardStatsReviewLogRating()}
+
+ {#each revlogRows as row, _index} +
{row.rating}
+ {/each} +
+
+
+
{tr2.cardStatsInterval()}
+
+ {#each revlogRows as row, _index} +
{row.interval}
+ {/each} +
+
+ +
+
{tr2.cardStatsReviewLogTimeTaken()}
+
+ {#each revlogRows as row, _index} +
{row.takenSecs}
+ {/each} +
+
+
{/if} -