From 46261af7517cdb54db482675a1111480270b44ff Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 2 Sep 2021 13:15:27 +0200 Subject: [PATCH] ui: Center display of hints buttons --- .../ui/src/components/ExerciceHints.svelte | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/frontend/ui/src/components/ExerciceHints.svelte b/frontend/ui/src/components/ExerciceHints.svelte index 41bb643e..38b0f5c6 100644 --- a/frontend/ui/src/components/ExerciceHints.svelte +++ b/frontend/ui/src/components/ExerciceHints.svelte @@ -93,22 +93,6 @@ {/if}
- {#if !(hint.content || hint.file)} - - {/if} - {#if !hint.file && hint.hidden} - - {/if}

{hint.title}

{#if hint.file}

@@ -124,6 +108,26 @@

{/if}
+ {#if !(hint.content || hint.file) || (!hint.file && hint.hidden)} +
+ {#if !(hint.content || hint.file)} + + {/if} + {#if !hint.file && hint.hidden} + + {/if} +
+ {/if} {/each}