mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🚨
This commit is contained in:
parent
06b7dfd1e2
commit
2c393a52f9
2 changed files with 14 additions and 15 deletions
|
|
@ -488,7 +488,7 @@ export const resizeTabs = () => {
|
|||
if (!item.element.classList.contains("fn__none") && item.editor.protyle.toolbar.range) {
|
||||
let rangeRect = item.editor.protyle.toolbar.range.getBoundingClientRect();
|
||||
if (rangeRect.height === 0) {
|
||||
const blockElement = hasClosestBlock(item.editor.protyle.toolbar.range.startContainer)
|
||||
const blockElement = hasClosestBlock(item.editor.protyle.toolbar.range.startContainer);
|
||||
if (blockElement) {
|
||||
rangeRect = blockElement.getBoundingClientRect();
|
||||
}
|
||||
|
|
@ -613,17 +613,17 @@ export const addResize = (obj: Layout | Wnd) => {
|
|||
|
||||
const getMinSize = (element: HTMLElement) => {
|
||||
let minSize = 220;
|
||||
Array.from(element.querySelectorAll('.file-tree')).find((item) => {
|
||||
Array.from(element.querySelectorAll(".file-tree")).find((item) => {
|
||||
if (item.classList.contains("sy__backlink") || item.classList.contains("sy__graph")
|
||||
|| item.classList.contains("sy__globalGraph") || item.classList.contains("sy__inbox")) {
|
||||
if (!item.classList.contains("fn__none") && !hasClosestByClassName(item, "fn__none")) {
|
||||
minSize = 320
|
||||
minSize = 320;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
})
|
||||
return minSize
|
||||
}
|
||||
});
|
||||
return minSize;
|
||||
};
|
||||
const resizeWnd = (resizeElement: HTMLElement, direction: string) => {
|
||||
const setSize = (item: HTMLElement, direction: string) => {
|
||||
if (item.classList.contains("fn__flex-1")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue