Skip to content

Commit

Permalink
button same size (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Jun 23, 2024
1 parent c40c5d0 commit 30a25d4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
17 changes: 17 additions & 0 deletions app/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,20 @@
background: #555;
}

/* custom.css */
.btn-uniform {
width: 100%;
border: none;
text-align: center;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}


/* custom.css */
a.no-underline {
text-decoration: none;
}

37 changes: 12 additions & 25 deletions app/pages/homepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ def homepage_layout(user_headers, user_credentials):
"Activer / Désactiver l'animation",
id="auto-move-button",
n_clicks=1,
style={
"backgroundColor": "#FD5252",
"width": "100%",
"border": "none",
},
className="btn-uniform",
style={"backgroundColor": "#FD5252"},
),
width=3,
),
Expand All @@ -59,25 +56,20 @@ def homepage_layout(user_headers, user_credentials):
"Afficher / Cacher la prédiction",
id="hide-bbox-button",
n_clicks=0,
style={
"backgroundColor": "#FEBA6A",
"width": "100%",
"border": "none",
},
className="btn-uniform",
style={"backgroundColor": "#FEBA6A"},
),
width=3,
),
dbc.Col(
html.A(
dbc.Button(
"Télécharger l'image",
style={
"backgroundColor": "#2C796E",
"width": "100%",
"border": "none",
},
className="btn-uniform",
style={"backgroundColor": "#2C796E"},
id="dl-image-button",
),
className="no-underline",
id="download-link",
download="",
href="",
Expand All @@ -90,16 +82,14 @@ def homepage_layout(user_headers, user_credentials):
"Acquitter l'alerte",
id="acknowledge-button",
n_clicks=1,
style={
"backgroundColor": "#054546",
"width": "100%",
"border": "none",
},
className="btn-uniform",
style={"backgroundColor": "#054546"},
),
width=3,
),
],
className="mb-4",
style={"display": "flex"},
),
],
width=8,
Expand All @@ -111,11 +101,8 @@ def homepage_layout(user_headers, user_credentials):
dbc.Row(
dbc.Button(
"Agrandir la carte",
style={
"backgroundColor": "#FEBA6A",
"width": "100%",
"border": "none",
},
className="btn-uniform",
style={"backgroundColor": "#FEBA6A"},
id="map-button",
),
className="mb-2",
Expand Down

0 comments on commit 30a25d4

Please sign in to comment.