Skip to content

Commit

Permalink
Added unique id`s on Input elements. New css file for styling element…
Browse files Browse the repository at this point in the history
…s customized for Datadoc
  • Loading branch information
tilen1976 committed Jan 22, 2024
1 parent 36a1942 commit 002b84c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/datadoc/assets/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ a {
color: #162327;
font-size: 16px;
padding: 8px 50px 8px 0;
/*cbi*/
display: flex;
flex-wrap: wrap;
flex-grow: 1;
}

.ssb-accordion .accordion-body.closed {
Expand Down
5 changes: 5 additions & 0 deletions src/datadoc/assets/cbi.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.ssb-accordion .accordion-body {
display: flex;
flex-wrap: wrap;
flex-grow: 1;
}
9 changes: 6 additions & 3 deletions src/datadoc/frontend/components/variables_tab_cbi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ def build_variables_tab() -> dbc.Tab:
[
html.Div(
[
html.Label(x, htmlFor="input1"),
html.Label(x, htmlFor=str(index)),
html.Div(
dcc.Input(id="input1", type="text"),
dcc.Input(
id=str(index),
type="text",
),
className="input-wrapper",
),
],
className="ssb-input",
style={"padding": "1rem"},
)
for x in test_variabel_details
for index, x in enumerate(test_variabel_details)
],
title=str(test_variabels.index(variabel_name) + 1)
+ " - "
Expand Down

0 comments on commit 002b84c

Please sign in to comment.