mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 16:06:13 +01:00
This commit is contained in:
parent
4370aefb02
commit
8dbc19c1fe
2 changed files with 8 additions and 4 deletions
|
|
@ -118,6 +118,7 @@
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 30px;
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
|
|
@ -77,10 +77,13 @@ export class Bookmark extends Model {
|
||||||
element: this.element.lastElementChild as HTMLElement,
|
element: this.element.lastElementChild as HTMLElement,
|
||||||
data: null,
|
data: null,
|
||||||
click(element: HTMLElement) {
|
click(element: HTMLElement) {
|
||||||
openFileById({
|
const id = element.getAttribute("data-node-id")
|
||||||
id: element.getAttribute("data-node-id"),
|
fetchPost("/api/block/checkBlockFold", {id}, (foldResponse) => {
|
||||||
hasContext: true,
|
openFileById({
|
||||||
action: [Constants.CB_GET_FOCUS]
|
id,
|
||||||
|
hasContext: !foldResponse.data,
|
||||||
|
action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
rightClick: (element: HTMLElement, event: MouseEvent) => {
|
rightClick: (element: HTMLElement, event: MouseEvent) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue