Alignement du logo et du numéro de version

This commit is contained in:
Colin Maudry
2026-01-29 02:38:10 +01:00
parent a0d6222424
commit 8c11a018a0
2 changed files with 23 additions and 13 deletions
+13 -8
View File
@@ -115,16 +115,21 @@ navbar = dbc.Navbar(
children=[
dbc.NavItem(
children=[
dcc.Link(html.H1("decp.info"), href="/", className="logo"),
html.P(
html.Div(
[
html.A(
version,
href="https://github.com/ColinMaudry/decp.info/blob/main/CHANGELOG.md",
)
dcc.Link(html.H1("decp.info"), href="/", className="logo"),
html.P(
[
html.A(
version,
href="https://github.com/ColinMaudry/decp.info/blob/main/CHANGELOG.md",
)
],
className="version",
),
],
className="version",
),
className="logo-wrapper",
)
],
style={"minWidth": "230px"},
),
+10 -5
View File
@@ -32,7 +32,8 @@ button {
background-color: #fff;
border-radius: 3px;
appearance: auto;
border: solid var(--primary-color) 1px; /* couleur thème foncée */
border: solid var(--primary-color) 1px;
/* couleur thème foncée */
}
button[disabled] {
@@ -75,17 +76,21 @@ button:hover:not([disabled]) {
a.logo {
color: black;
text-decoration: none;
float: left;
}
a.logo > h1 {
font-weight: 400;
margin: 0;
line-height: 1;
}
.logo-wrapper {
display: flex;
align-items: baseline;
}
p.version {
float: left;
margin-top: 21px;
margin-left: 12px;
margin: 0 0 0 12px;
}
p.version > a {