Skip to content

Commit

Permalink
fix(bug): not work
Browse files Browse the repository at this point in the history
  • Loading branch information
YU000jp committed Aug 9, 2023
1 parent cc0883b commit da0e8a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const stickyID = `${logseq.baseInfo.id}--sticky`;
export const stickyCalendarID = `${logseq.baseInfo.id}--sticky-calendar`;


//encodeHtml
export function encodeHtml(str: string): string {
Expand Down
5 changes: 2 additions & 3 deletions src/mainCSS.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

//end Setting changed

import { stickyCalendarID, stickyID } from "./lib";

//set CSS class
export function setCSSclass() {
if (logseq.settings?.stickyTextVisible) {
Expand All @@ -23,7 +21,8 @@ export function setCSSclass() {

//main CSS
export function loadMainCSS() {

const stickyID = `${logseq.baseInfo.id}--sticky`;
const stickyCalendarID = `${logseq.baseInfo.id}--sticky-calendar`;
logseq.provideStyle(String.raw`
body.is-pdf-active div#${stickyID},
body.is-pdf-active div#${stickyCalendarID},
Expand Down
3 changes: 2 additions & 1 deletion src/stickyText.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { graphName } from '.';
import { stickyID, stickyPosition } from './lib';
import { stickyPosition } from './lib';
import { encodeHtml } from './lib';

export const stickyTextOpenUI = (flag, text, x, y, width, height, uuid, pageName) => {
const stickyID = `${logseq.baseInfo.id}--sticky`;
if (flag.lock === true) {
//
} else if (logseq.settings?.stickyLock === true) {
Expand Down

0 comments on commit da0e8a1

Please sign in to comment.