Fix missing left margin in CongratsPage (#1498)

This commit is contained in:
Henrik Giesel 2021-11-19 02:02:54 +01:00 committed by GitHub
parent 11042a16ce
commit 1a874b184d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
--> -->
<script lang="ts"> <script lang="ts">
import Container from "../components/Container.svelte"; import Container from "../components/Container.svelte";
import Col from "../components/Col.svelte";
import type { Scheduler } from "../lib/proto"; import type { Scheduler } from "../lib/proto";
import { buildNextLearnMsg } from "./lib"; import { buildNextLearnMsg } from "./lib";
import { bridgeLink } from "../lib/bridgecommand"; import { bridgeLink } from "../lib/bridgecommand";
@ -25,40 +26,42 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}); });
</script> </script>
<Container class="d-flex justify-content-center pt-3"> <Container --gutter-block="1rem" --gutter-inline="2px" breakpoint="sm">
<div class="congrats"> <Col --col-justify="center">
<h3>{congrats}</h3> <div class="congrats">
<h3>{congrats}</h3>
<p>{nextLearnMsg}</p> <p>{nextLearnMsg}</p>
{#if info.reviewRemaining} {#if info.reviewRemaining}
<p>{today_reviews}</p> <p>{today_reviews}</p>
{/if}
{#if info.newRemaining}
<p>{today_new}</p>
{/if}
{#if info.bridgeCommandsSupported}
{#if info.haveSchedBuried || info.haveUserBuried}
<p>
{@html buriedMsg}
</p>
{/if} {/if}
{#if !info.isFilteredDeck} {#if info.newRemaining}
<p> <p>{today_new}</p>
{@html customStudyMsg}
</p>
{/if} {/if}
{/if}
{#if info.deckDescription} {#if info.bridgeCommandsSupported}
<div class="description"> {#if info.haveSchedBuried || info.haveUserBuried}
{@html info.deckDescription} <p>
</div> {@html buriedMsg}
{/if} </p>
</div> {/if}
{#if !info.isFilteredDeck}
<p>
{@html customStudyMsg}
</p>
{/if}
{/if}
{#if info.deckDescription}
<div class="description">
{@html info.deckDescription}
</div>
{/if}
</div>
</Col>
</Container> </Container>
<style lang="scss"> <style lang="scss">