mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix ribbon shrinking/wrap
This commit is contained in:
parent
6d51593b7d
commit
882912826f
3
TODO
3
TODO
@ -1 +1,4 @@
|
|||||||
- search should not require a note
|
- search should not require a note
|
||||||
|
- all ribbon tabs should have assignable shortcut
|
||||||
|
- new icon
|
||||||
|
- green theme
|
||||||
|
@ -33,8 +33,8 @@ function setupLeftPaneResizer(leftPaneVisible) {
|
|||||||
|
|
||||||
function setupRightPaneResizer() {
|
function setupRightPaneResizer() {
|
||||||
if (rightInstance) {
|
if (rightInstance) {
|
||||||
leftInstance.destroy();
|
rightInstance.destroy();
|
||||||
leftInstance = null;
|
rightInstance = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const rightPaneVisible = $("#right-pane").is(":visible");
|
const rightPaneVisible = $("#right-pane").is(":visible");
|
||||||
|
@ -23,6 +23,10 @@ const TPL = `
|
|||||||
.ribbon-tab-title {
|
.ribbon-tab-title {
|
||||||
color: var(--muted-text-color);
|
color: var(--muted-text-color);
|
||||||
border-bottom: 1px solid var(--main-border-color);
|
border-bottom: 1px solid var(--main-border-color);
|
||||||
|
min-width: 24px;
|
||||||
|
flex-basis: 24px;
|
||||||
|
max-width: fit-content;
|
||||||
|
flex-grow: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ribbon-tab-title .bx {
|
.ribbon-tab-title .bx {
|
||||||
@ -34,7 +38,6 @@ const TPL = `
|
|||||||
.ribbon-tab-title.active {
|
.ribbon-tab-title.active {
|
||||||
color: var(--main-text-color);
|
color: var(--main-text-color);
|
||||||
border-bottom: 1px solid var(--main-text-color);
|
border-bottom: 1px solid var(--main-text-color);
|
||||||
flex-shrink: 1;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@ -53,14 +56,18 @@ const TPL = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ribbon-tab-spacer {
|
.ribbon-tab-spacer {
|
||||||
flex-basis: 35px;
|
flex-basis: 0;
|
||||||
flex-shrink: 1;
|
min-width: 0;
|
||||||
|
max-width: 35px;
|
||||||
|
flex-grow: 1;
|
||||||
border-bottom: 1px solid var(--main-border-color);
|
border-bottom: 1px solid var(--main-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ribbon-tab-spacer:last-of-type {
|
.ribbon-tab-spacer:last-of-type {
|
||||||
flex-shrink: 1;
|
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
flex-basis: 0;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 10000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ribbon-button-container {
|
.ribbon-button-container {
|
||||||
|
@ -18,6 +18,7 @@ export default class SplitNoteContainer extends FlexContainer {
|
|||||||
const $renderedWidget = widget.render();
|
const $renderedWidget = widget.render();
|
||||||
|
|
||||||
$renderedWidget.attr("data-ntx-id", noteContext.ntxId);
|
$renderedWidget.attr("data-ntx-id", noteContext.ntxId);
|
||||||
|
$renderedWidget.css("flex-basis", "0"); // so that each split has same width
|
||||||
|
|
||||||
$renderedWidget.on('click', () => appContext.tabManager.activateNoteContext(noteContext.ntxId));
|
$renderedWidget.on('click', () => appContext.tabManager.activateNoteContext(noteContext.ntxId));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user