mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 10:24:23 +01:00
feat(layout/status_bar): integrate breadcrumbs
This commit is contained in:
parent
9ee3c48485
commit
2f44b9dc59
@ -143,7 +143,6 @@ export default class DesktopLayout {
|
|||||||
new FlexContainer("row")
|
new FlexContainer("row")
|
||||||
.class("breadcrumb-row")
|
.class("breadcrumb-row")
|
||||||
.cssBlock(".breadcrumb-row > * { margin: 5px; }")
|
.cssBlock(".breadcrumb-row > * { margin: 5px; }")
|
||||||
.child(<Breadcrumb />)
|
|
||||||
.optChild(isNewLayout, <BreadcrumbBadges />)
|
.optChild(isNewLayout, <BreadcrumbBadges />)
|
||||||
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
|
.child(<SpacerWidget baseSize={0} growthFactor={1} />)
|
||||||
.child(<MovePaneButton direction="left" />)
|
.child(<MovePaneButton direction="left" />)
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
.breadcrumb-row {
|
.breadcrumb-row {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 30px;
|
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 10px;
|
|
||||||
container-type: inline-size;
|
container-type: inline-size;
|
||||||
|
|
||||||
@container (max-width: 700px) {
|
@container (max-width: 700px) {
|
||||||
@ -47,72 +45,72 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
display: flex;
|
||||||
|
margin: 0;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 0.9em;
|
||||||
|
gap: 0.25em;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
max-width: 85%;
|
||||||
|
|
||||||
|
> span,
|
||||||
|
> span > span {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
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 {
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.experimental-feature-new-layout .breadcrumb-row {
|
body.experimental-feature-new-layout .breadcrumb-row {
|
||||||
padding-inline-end: 0;
|
padding-inline-end: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.component.breadcrumb {
|
|
||||||
contain: none;
|
|
||||||
display: flex;
|
|
||||||
margin: 0;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 0.9em;
|
|
||||||
gap: 0.25em;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
max-width: 85%;
|
|
||||||
|
|
||||||
> span,
|
|
||||||
> span > span {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
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 {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
.component.status-bar {
|
.component.status-bar {
|
||||||
contain: none;
|
contain: none;
|
||||||
|
border-top: 1px solid var(--main-border-color);
|
||||||
|
background-color: var(--left-pane-background-color)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,12 @@
|
|||||||
|
import Breadcrumb from "../Breadcrumb";
|
||||||
import "./StatusBar.css";
|
import "./StatusBar.css";
|
||||||
|
|
||||||
export default function StatusBar() {
|
export default function StatusBar() {
|
||||||
return (
|
return (
|
||||||
<div className="status-bar">
|
<div className="status-bar">
|
||||||
Status bar goes here.
|
<div className="breadcrumb-row">
|
||||||
|
<Breadcrumb />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user