mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 10:24:23 +01:00
feat(tab_navigation): add the buttons on vertical layout
This commit is contained in:
parent
2a9558e9c5
commit
346ad1e8a3
@ -45,6 +45,7 @@ import PromotedAttributes from "../widgets/PromotedAttributes.jsx";
|
|||||||
import SpacerWidget from "../widgets/launch_bar/SpacerWidget.jsx";
|
import SpacerWidget from "../widgets/launch_bar/SpacerWidget.jsx";
|
||||||
import LauncherContainer from "../widgets/launch_bar/LauncherContainer.jsx";
|
import LauncherContainer from "../widgets/launch_bar/LauncherContainer.jsx";
|
||||||
import Breadcrumb from "../widgets/Breadcrumb.jsx";
|
import Breadcrumb from "../widgets/Breadcrumb.jsx";
|
||||||
|
import TabHistoryNavigationButtons from "../widgets/TabHistoryNavigationButtons.jsx";
|
||||||
|
|
||||||
export default class DesktopLayout {
|
export default class DesktopLayout {
|
||||||
|
|
||||||
@ -102,7 +103,12 @@ export default class DesktopLayout {
|
|||||||
new FlexContainer("column")
|
new FlexContainer("column")
|
||||||
.id("rest-pane")
|
.id("rest-pane")
|
||||||
.css("flex-grow", "1")
|
.css("flex-grow", "1")
|
||||||
.optChild(!fullWidthTabBar, new FlexContainer("row").child(new TabRowWidget()).optChild(customTitleBarButtons, <TitleBarButtons />).css("height", "40px"))
|
.optChild(!fullWidthTabBar,
|
||||||
|
new FlexContainer("row")
|
||||||
|
.child(<TabHistoryNavigationButtons />)
|
||||||
|
.child(new TabRowWidget())
|
||||||
|
.optChild(customTitleBarButtons, <TitleBarButtons />)
|
||||||
|
.css("height", "40px"))
|
||||||
.child(
|
.child(
|
||||||
new FlexContainer("row")
|
new FlexContainer("row")
|
||||||
.filling()
|
.filling()
|
||||||
|
|||||||
7
apps/client/src/widgets/TabHistoryNavigationButtons.css
Normal file
7
apps/client/src/widgets/TabHistoryNavigationButtons.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.component.tab-history-navigation-buttons {
|
||||||
|
contain: none;
|
||||||
|
flex-shrink: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-inline-end: 0.5em;
|
||||||
|
}
|
||||||
11
apps/client/src/widgets/TabHistoryNavigationButtons.tsx
Normal file
11
apps/client/src/widgets/TabHistoryNavigationButtons.tsx
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import ActionButton from "./react/ActionButton";
|
||||||
|
import "./TabHistoryNavigationButtons.css";
|
||||||
|
|
||||||
|
export default function TabHistoryNavigationButtons() {
|
||||||
|
return (
|
||||||
|
<div className="tab-history-navigation-buttons">
|
||||||
|
<ActionButton icon="bx bx-left-arrow-alt" />
|
||||||
|
<ActionButton icon="bx bx-right-arrow-alt" />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user