mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
margin-right: 8px;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
min-height: 30px;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
||||
@@ -77,10 +77,13 @@ export class Bookmark extends Model {
|
||||
element: this.element.lastElementChild as HTMLElement,
|
||||
data: null,
|
||||
click(element: HTMLElement) {
|
||||
openFileById({
|
||||
id: element.getAttribute("data-node-id"),
|
||||
hasContext: true,
|
||||
action: [Constants.CB_GET_FOCUS]
|
||||
const id = element.getAttribute("data-node-id")
|
||||
fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {
|
||||
openFileById({
|
||||
id,
|
||||
hasContext: !foldResponse.data,
|
||||
action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS],
|
||||
});
|
||||
});
|
||||
},
|
||||
rightClick: (element: HTMLElement, event: MouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user