Skip to content

Commit

Permalink
fix issue with popup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnweshGangula authored and EINDEX committed Jul 24, 2024
1 parent 94445a6 commit 25a59be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/LogseqBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ type LogseqBlockProps = {
};

export const LogseqBlock = ({ graph, blocks }: LogseqBlockProps) => {

if(blocks.length === 0) {
return <></>;
}

const [checked, setChecked] = React.useState(false);
const [status, setStatus] = React.useState('');

Expand Down
1 change: 1 addition & 0 deletions src/components/logseq.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@

.blockContentList{
width: 100%;
margin: 0 !important;
}

.blockContentListItem{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Popup() {
<LogseqBlock
key={block.uuid}
graph={logseqSearchResult?.graph}
block={block}
blocks={[block]}
isPopUp={true}
/>
))}
Expand Down

0 comments on commit 25a59be

Please sign in to comment.