Skip to content
Snippets Groups Projects
Commit 0fdfcbf8 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Modifie le design des expansions panels

parent 26f87d31
No related branches found
No related tags found
1 merge request!101Améliorations UI
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<div class="origin-center -rotate-90"> <div class="origin-center -rotate-90">
<div class="flex "> <div class="flex ">
<span <span
class="mr-2 text-xs uppercase tracking-wide text-gray-500 xl:text-sm" class="mr-2 text-xs uppercase tracking-wide text-gray-600 xl:text-sm"
class:text-le-bleu={name === $waterfall.name} class:text-le-bleu={name === $waterfall.name}
class:font-bold={name === $waterfall.name} class:font-bold={name === $waterfall.name}
> >
...@@ -303,27 +303,40 @@ ...@@ -303,27 +303,40 @@
</div> </div>
<!--Bouton pour passer du mode compact au mode waterfall--> <!--Bouton pour passer du mode compact au mode waterfall-->
<div class="flex justify-end"> <div class=" flex w-full justify-between">
{#if displayMode.compact} {#if displayMode.compact}
<a <a
class="flex cursor-pointer gap-1 rounded-t-md border-x border-t bg-gray-100 p-3 text-sm uppercase text-gray-600 hover:underline" class=" w-full cursor-pointer"
href={newSimulationUrl({ href={newSimulationUrl({
...displayMode, ...displayMode,
compact: undefined, compact: undefined,
})} })}
data-sveltekit-noscroll data-sveltekit-noscroll
><Icon class="h-5 w-5" icon="ri-eye-line" />voir tous ><div
dispositifs</a class="mb-2 flex items-center border-gray-300 py-1 pr-4 text-gray-600 "
>
<Icon
class="h-5 min-h-fit w-5"
icon="ri-arrow-right-s-line"
/><span class="tracking-wider "
>Voir tous les dispositifs</span
>
</div></a
> >
{:else} {:else}
<a <a
class="flex cursor-pointer gap-1 rounded-t-md border-x border-t bg-gray-100 p-3 text-sm uppercase text-gray-600 hover:underline" class="w-full cursor-pointer"
href={newSimulationUrl({ href={newSimulationUrl({
...displayMode, ...displayMode,
compact: true, compact: true,
})} })}
data-sveltekit-noscroll data-sveltekit-noscroll
><Icon class="h-5 w-5" icon="ri-eye-off-line" />Masquer</a ><div
class="flex items-center border-b border-gray-300 py-1 pr-4 text-gray-600"
>
<Icon class="h-5 min-h-fit w-5" icon="ri-arrow-up-s-line" />
<span class="tracking-wider">Tous les dispositifs</span>
</div></a
> >
{/if} {/if}
</div> </div>
......
...@@ -163,16 +163,17 @@ ...@@ -163,16 +163,17 @@
{#if billDecomposition?.children === undefined} {#if billDecomposition?.children === undefined}
{#if Object.keys(bothRootDirectParameterById).length > 0} {#if Object.keys(bothRootDirectParameterById).length > 0}
<button <button
class="mb-3 w-full border-b border-black py-1 pr-4 text-black" class="mb-3 w-full border-b border-gray-300 py-1 pr-4 "
on:click={() => (openDirectParameters = !openDirectParameters)} on:click={() => (openDirectParameters = !openDirectParameters)}
> >
<div class="flex justify-between"> <div class="flex items-center text-gray-600">
{#if openDirectParameters} {#if openDirectParameters}
<Icon class="inline-flex h-5 w-5" icon="ri:arrow-up-s-line" /> <Icon class="h-5 min-h-fit w-5" icon="ri-arrow-up-s-line" />
{:else} {:else}
<Icon class="inline-flex h-5 w-5" icon="ri:arrow-down-s-line" /> <Icon class="h-5 min-h-fit w-5" icon="ri-arrow-right-s-line" />
{/if} {/if}<span class="ml-1 tracking-wider"
<span class="tracking-wider">Principaux paramètres de la loi</span> >Principaux paramètres de la loi</span
>
</div> </div>
</button> </button>
...@@ -215,16 +216,15 @@ ...@@ -215,16 +216,15 @@
{#if Object.keys(bothRootParameterById).length > 0} {#if Object.keys(bothRootParameterById).length > 0}
<button <button
class="mb-3 w-full border-b border-black py-1 pr-4 text-black" class="mb-3 w-full border-b border-gray-300 py-1 pr-4 text-gray-600"
on:click={() => (openAllParameters = !openAllParameters)} on:click={() => (openAllParameters = !openAllParameters)}
> >
<div class="flex justify-between"> <div class="flex items-center">
{#if openAllParameters} {#if openAllParameters}
<Icon class="inline-flex h-5 w-5" icon="ri:arrow-up-s-line" /> <Icon class="h-5 min-h-fit w-5" icon="ri-arrow-up-s-line" />
{:else} {:else}
<Icon class="inline-flex h-5 w-5" icon="ri:arrow-down-s-line" /> <Icon class="h-5 min-h-fit w-5" icon="ri-arrow-right-s-line" />
{/if} {/if}<span class="tracking-wider"
<span class="tracking-wider"
>Autres paramètres affectant le dispositif</span >Autres paramètres affectant le dispositif</span
> >
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment