refactor(status_bar): remove wrapper container for breadcrumb

This commit is contained in:
Elian Doran
2025-12-12 23:07:57 +02:00
parent a61ddedc0b
commit 2b7e203bcc
3 changed files with 50 additions and 61 deletions

View File

@@ -1,72 +1,63 @@
.breadcrumb-row {
.breadcrumb {
position: relative;
min-height: 30px;
align-items: center;
display: flex;
margin: 0;
align-items: center;
font-size: 0.9em;
gap: 0.25em;
flex-wrap: nowrap;
overflow: hidden;
.breadcrumb {
> span,
> span > span {
display: flex;
margin: 0;
align-items: center;
font-size: 0.9em;
gap: 0.25em;
flex-wrap: nowrap;
overflow: hidden;
min-width: 0;
> span,
> span > span {
display: flex;
align-items: center;
a {
color: inherit;
text-decoration: none;
min-width: 0;
a {
color: inherit;
text-decoration: none;
min-width: 0;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
flex-shrink: 2;
}
}
> span:last-of-type a {
max-width: 300px;
flex-shrink: 1;
}
ul {
flex-direction: column;
list-style-type: none;
margin: 0;
padding: 0;
}
.dropdown-item span,
.dropdown-item strong,
.breadcrumb-last-item {
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
max-width: 300px;
}
.breadcrumb-last-item {
text-decoration: none;
color: unset;
cursor: text;
}
input {
padding: 0 10px;
width: 200px;
flex-shrink: 2;
}
}
}
body.experimental-feature-new-layout .breadcrumb-row {
padding-inline-end: 0;
}
> span:last-of-type a {
max-width: 300px;
flex-shrink: 1;
}
ul {
flex-direction: column;
list-style-type: none;
margin: 0;
padding: 0;
}
.dropdown-item span,
.dropdown-item strong,
.breadcrumb-last-item {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
max-width: 300px;
}
.breadcrumb-last-item {
text-decoration: none;
color: unset;
cursor: text;
}
input {
padding: 0 10px;
width: 200px;
}
}

View File

@@ -9,7 +9,7 @@
align-items: center;
padding-inline: 0.25em;
> .breadcrumb-row {
> .breadcrumb {
flex-grow: 1;
}

View File

@@ -45,9 +45,7 @@ export default function StatusBar() {
<div className="status-bar-main-row">
{context && <>
<div className="breadcrumb-row">
<Breadcrumb {...context} />
</div>
<Breadcrumb {...context} />
<div className="actions-row">
<AttributesButton attributesShown={attributesShown} setAttributesShown={setAttributesShown} {...context} />