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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
b666afa3
Commit
b666afa3
authored
Sep 27, 2021
by
Dorine Lambinet
Browse files
Options
Downloads
Patches
Plain Diff
Retire les flèches des inputs number et réduit la taille des input.
parent
f0c46847
No related branches found
No related tags found
1 merge request
!48
Ui etiquette cas type
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/variables/VariableInput.svelte
+16
-6
16 additions, 6 deletions
src/lib/components/variables/VariableInput.svelte
with
16 additions
and
6 deletions
src/lib/components/variables/VariableInput.svelte
+
16
−
6
View file @
b666afa3
...
...
@@ -210,7 +210,7 @@
{
#if
isInput
}
{
#if
variable
.
possible_values
!==
undefined
}
<select
class=
"p-1 pr-
8
rounded my-1 focus:border-le-bleu focus:text-le-bleu"
class=
"
w-44
p-1 pr-
2
rounded my-1 focus:border-le-bleu focus:text-le-bleu"
on:blur=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
on:change=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
value=
{
getSituationVariableValue
(
...
...
@@ -227,6 +227,7 @@
{
:else
if
variable
.
value_type
===
"
bool
"
}
<label>
<input
class=
"w-24 p-1 rounded mr-1 my-1 focus:border-le-bleu focus:text-le-bleu"
checked=
{
asBoolean
(
getSituationVariableValue
(
situation
,
...
...
@@ -235,7 +236,6 @@
year
,
),
)
}
class=
"p-1 rounded mr-1 my-1 focus:border-le-bleu focus:text-le-bleu"
on:change=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
type=
"checkbox"
/>
...
...
@@ -243,7 +243,7 @@
</label>
{
:else
if
variable
.
value_type
===
"
date
"
}
<input
class=
"p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
class=
"
w-44
p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
on:change=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
type=
"date"
value=
{
asString
(
...
...
@@ -258,7 +258,7 @@
{
:else
if
[
"
float
"
,
"
int
"
].
includes
(
variable
.
value_type
)
}
{
#if
situation
.
slider
!==
undefined
&&
situation
.
slider
.
entity
===
variable
.
entity
&&
situation
.
slider
.
id
===
populationId
&&
situation
.
slider
.
name
===
variable
.
name
}
<input
class=
"p-1 rounded my-1"
class=
"
w-24
p-1 rounded my-1"
disabled
type=
"number"
value=
{
asNumber
(
...
...
@@ -272,7 +272,7 @@
/>
{
:
else
}
<input
class=
"p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
class=
"
w-24
p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
on:change=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
type=
"number"
value=
{
asNumber
(
...
...
@@ -311,7 +311,7 @@
{
/if
}
{
:
else
}
<input
class=
"p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
class=
"
w-24
p-1 rounded my-1 focus:border-le-bleu focus:text-le-bleu"
on:change=
{
(
event
)
=>
changeValue
(
event
,
populationId
)
}
type=
"text"
value=
{
asString
(
...
...
@@ -343,3 +343,13 @@
</div>
</div>
</section>
<style>
input
::-webkit-inner-spin-button
,
input
::-webkit-outer-spin-button
{
-webkit-appearance
:
none
;
}
input
[
type
=
"number"
]
{
-moz-appearance
:
textfield
;
}
</style>
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