Skip to content

Commit 6707f92

Browse files
authored
Merge pull request #3 from taxe10/main
💄 Change dbc settings buttons to round buttons
2 parents 8c1cc79 + 5994729 commit 6707f92

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

mlex_utils/dash_utils/components_bootstrap/job_manager.py

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,24 @@ def __init__(
231231
dbc.Button(
232232
DashIconify(
233233
icon="mdi:settings",
234-
style={"padding": "0px"},
234+
width=20,
235+
style={"display": "block"},
235236
),
236237
id=self.ids.advanced_options_modal_train(
237238
aio_id
238239
),
239240
color="secondary",
240-
style={"height": "36px", "line-height": "1"},
241+
size="sm",
242+
className="rounded-circle",
243+
style={
244+
"aspectRatio": "1 / 1",
245+
"paddingLeft": "3px",
246+
"paddingRight": "3px",
247+
"paddingTop": "3px",
248+
"paddingBottom": "3px",
249+
},
241250
),
251+
className="d-flex justify-content-center align-items-center",
242252
width=2,
243253
),
244254
],
@@ -277,14 +287,27 @@ def __init__(
277287
),
278288
dbc.Col(
279289
dbc.Button(
280-
DashIconify(icon="mdi:settings"),
290+
DashIconify(
291+
icon="mdi:settings",
292+
width=20,
293+
style={"display": "block"},
294+
),
281295
id=self.ids.advanced_options_modal_inference(
282296
aio_id
283297
),
284298
color="secondary",
285-
style={"height": "36px", "line-height": "1"},
299+
size="sm",
300+
className="rounded-circle",
301+
style={
302+
"aspectRatio": "1 / 1",
303+
"paddingLeft": "3px",
304+
"paddingRight": "3px",
305+
"paddingTop": "3px",
306+
"paddingBottom": "3px",
307+
},
286308
),
287-
width=1,
309+
className="d-flex justify-content-center align-items-center",
310+
width=2,
288311
),
289312
],
290313
className="g-1",

mlex_utils/dash_utils/components_bootstrap/job_manager_minimal.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,22 @@ def __init__(
174174
dbc.Button(
175175
DashIconify(
176176
icon="mdi:settings",
177-
style={"padding": "0px"},
177+
width=20,
178+
style={"display": "block"},
178179
),
179180
id=self.ids.advanced_options_modal_run(aio_id),
180181
color="secondary",
181-
style={"height": "36px", "line-height": "1"},
182+
size="sm",
183+
className="rounded-circle",
184+
style={
185+
"aspectRatio": "1 / 1",
186+
"paddingLeft": "3px",
187+
"paddingRight": "3px",
188+
"paddingTop": "3px",
189+
"paddingBottom": "3px",
190+
},
182191
),
183-
width=2,
192+
className="d-flex justify-content-center align-items-center",
184193
),
185194
],
186195
className="g-1",

0 commit comments

Comments
 (0)