Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
69aa6a85
Commit
69aa6a85
authored
1 year ago
by
Toufic Batache
Browse files
Options
Downloads
Patches
Plain Diff
Changed related test case "selected" layout
parent
823fc4a1
Branches
Branches containing commit
Tags
0.0.416
Tags containing commit
No related merge requests found
Pipeline
#9088
passed
1 year ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/components/test_cases/TestCaseRelatedCarousel.svelte
+16
-11
16 additions, 11 deletions
src/lib/components/test_cases/TestCaseRelatedCarousel.svelte
tailwind.config.cjs
+13
-0
13 additions, 0 deletions
tailwind.config.cjs
with
29 additions
and
11 deletions
src/lib/components/test_cases/TestCaseRelatedCarousel.svelte
+
16
−
11
View file @
69aa6a85
...
...
@@ -82,20 +82,17 @@
on:scroll=
{
(
ev
)
=>
(
carouselScrollX
=
ev
.
target
.
scrollLeft
)
}
class=
"flex w-full snap-x scroll-p-10 gap-5 overflow-x-auto scroll-smooth py-5 md:-ml-14 lg:-ml-20 2xl:-ml-[88px]"
>
<!-- <div class="snap-center shrink-0">-->
<!-- <div class="shrink-0 w-4 sm:w-20"></div>-->
<!-- </div>-->
<div
/>
{
#each
filteredTestCases
as
{
situation
,
situationIndex
}
}
{
@
const
isTestCaseSelected
=
JSON
.
stringify
(
displayMode
.
testCasesIndex
)
===
JSON
.
stringify
([
situationIndex
])
}
<div
class=
"w-[80%] shrink-0 snap-start md:w-[400px]"
class=
"
flex
w-[80%] shrink-0 snap-start md:w-[400px]"
value=
{
situationIndex
}
>
<button
class=
"group w-full text-start"
class=
"group w-full
self-start
text-start"
on:click=
{
()
=>
{
if
(
!
isTestCaseSelected
)
replacementValidationModalTestCaseIndex
=
situationIndex
...
...
@@ -103,8 +100,9 @@
type=
"button"
>
<div
class=
"overflow-hidden rounded-md border-2 hover:border-le-bleu hover:bg-gray-200"
class:border-le-bleu=
{
isTestCaseSelected
}
class=
"overflow-hidden rounded-md border-2"
class:hover:border-le-vert-500=
{
!
isTestCaseSelected
}
class:cursor-default=
{
isTestCaseSelected
}
id=
"situation_{situationIndex}_case_summary"
>
<div
class=
"bg-gray-100 p-4 pb-2 text-left"
>
...
...
@@ -135,17 +133,24 @@
</div>
</div>
<span
class=
"text-sm group-hover:text-le-bleu 2xl:text-base"
class:text-le-bleu=
{
JSON
.
stringify
(
displayMode
.
testCasesIndex
)
===
JSON
.
stringify
([
situationIndex
])
}
class=
"text-sm 2xl:text-base"
class:group-hover:text-le-vert-800=
{
!
isTestCaseSelected
}
>
{
situation
.
title
}
</span>
</button>
{
#if
isTestCaseSelected
}
<span
class=
"-ml-32 -mt-4 flex h-fit shrink-0 items-center gap-1 rounded-2xl bg-le-vert-200 px-3 py-1 text-sm text-le-vert-900"
>
sélectionné
<iconify-icon
icon=
"ri-check-line"
/>
</span>
{
/if
}
</div>
{
/each
}
<div
class=
"w-[80%] shrink-0 snap-
center
rounded-md border-2 bg-white/30 hover:border-le-
bleu
hover:bg-gray-50/50 md:w-[400px]"
class=
"w-[80%] shrink-0 snap-
start
rounded-md border-2 bg-white/30 hover:border-le-
vert-500
hover:bg-gray-50/50
hover:text-le-vert-800
md:w-[400px]"
>
<button
class=
"flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-5"
...
...
This diff is collapsed.
Click to expand it.
tailwind.config.cjs
+
13
−
0
View file @
69aa6a85
...
...
@@ -50,6 +50,19 @@ const config = {
"
le-gris-dispositif-dark
"
:
"
#2F406A
"
,
"
le-vert-validation
"
:
"
#13CC03
"
,
"
le-vert-validation-dark
"
:
"
#377330
"
,
"
le-vert
"
:
{
50
:
"
#f1f0e6
"
,
100
:
"
#e2e1cd
"
,
200
:
"
#c5c39c
"
,
300
:
"
#a8a66a
"
,
400
:
"
#8b8839
"
,
500
:
"
#6e6a07
"
,
600
:
"
#635f06
"
,
700
:
"
#585506
"
,
800
:
"
#424004
"
,
900
:
"
#2c2a03
"
,
950
:
"
#161501
"
,
},
},
keyframes
:
{
blinker
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment