mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
style tweaks #4338
This commit is contained in:
parent
5163e50e7d
commit
38db7f9db7
@ -18,7 +18,7 @@ const TPL = `
|
|||||||
.global-menu-button {
|
.global-menu-button {
|
||||||
background-image: url("${window.glob.assetPath}/images/icon-black.svg");
|
background-image: url("${window.glob.assetPath}/images/icon-black.svg");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 50% 80%;
|
background-position: 40% 50%;
|
||||||
background-size: 45px;
|
background-size: 45px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -88,7 +88,7 @@ const TPL = `
|
|||||||
display: none;
|
display: none;
|
||||||
border-bottom: 1px solid var(--main-border-color);
|
border-bottom: 1px solid var(--main-border-color);
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 10px;
|
margin-right: 5px; /* needs to have this value so that the bottom border is the same width as the top one */
|
||||||
}
|
}
|
||||||
|
|
||||||
.ribbon-body.active {
|
.ribbon-body.active {
|
||||||
|
@ -17,7 +17,8 @@ const TPL = `
|
|||||||
|
|
||||||
.basic-properties-widget > * {
|
.basic-properties-widget > * {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
margin-top: 12px;
|
margin-top: 9px;
|
||||||
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-type-container, .editability-select-container {
|
.note-type-container, .editability-select-container {
|
||||||
|
@ -14,7 +14,7 @@ const TPL = `
|
|||||||
color: var(--muted-text-color);
|
color: var(--muted-text-color);
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 12px 12px 11px 12px;
|
padding: 14px 12px 13px 12px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -8,7 +8,8 @@ const TPL = `
|
|||||||
.attribute-list {
|
.attribute-list {
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
margin-top: 3px;
|
margin-top: 5px;
|
||||||
|
margin-bottom: 2px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ const Draggabilly = window.Draggabilly;
|
|||||||
|
|
||||||
const TAB_CONTAINER_MIN_WIDTH = 24;
|
const TAB_CONTAINER_MIN_WIDTH = 24;
|
||||||
const TAB_CONTAINER_MAX_WIDTH = 240;
|
const TAB_CONTAINER_MAX_WIDTH = 240;
|
||||||
|
const TAB_CONTAINER_LEFT_PADDING = 5;
|
||||||
const NEW_TAB_WIDTH = 32;
|
const NEW_TAB_WIDTH = 32;
|
||||||
const MIN_FILLER_WIDTH = 50;
|
const MIN_FILLER_WIDTH = 50;
|
||||||
const MARGIN_WIDTH = 5;
|
const MARGIN_WIDTH = 5;
|
||||||
@ -330,7 +331,7 @@ export default class TabRowWidget extends BasicWidget {
|
|||||||
getTabPositions() {
|
getTabPositions() {
|
||||||
const tabPositions = [];
|
const tabPositions = [];
|
||||||
|
|
||||||
let position = 0;
|
let position = TAB_CONTAINER_LEFT_PADDING;
|
||||||
this.tabWidths.forEach(width => {
|
this.tabWidths.forEach(width => {
|
||||||
tabPositions.push(position);
|
tabPositions.push(position);
|
||||||
position += width + MARGIN_WIDTH;
|
position += width + MARGIN_WIDTH;
|
||||||
@ -617,7 +618,7 @@ export default class TabRowWidget extends BasicWidget {
|
|||||||
|
|
||||||
// update tab id for the new main context
|
// update tab id for the new main context
|
||||||
this.getTabById(oldMainNtxId).attr("data-ntx-id", newMainNtxId);
|
this.getTabById(oldMainNtxId).attr("data-ntx-id", newMainNtxId);
|
||||||
this.updateTabById(newMainNtxId);
|
this.updateTabById(newMainNtxId);
|
||||||
}
|
}
|
||||||
|
|
||||||
contextsReopenedEvent({mainNtxId, tabPosition}) {
|
contextsReopenedEvent({mainNtxId, tabPosition}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user