Skip to content

Conversation

@galmuhammadi
Copy link
Owner

Purpose

Describe the purpose of this pull request.

Proposal

  • item 1...
  • item 2...

External contributions

Thank you for your contribution! 🎉

Please ensure the following items are checked before submitting your pull request:

  • I have read and followed the contributing guidelines
  • I have read and agreed to the Code of Conduct
  • I have signed off my commits with git commit --signoff (DCO compliance)
  • I have signed my commits with my SSH or GPG key (git commit -S)
  • My commit messages follow the required format: <gitmoji>(type) title description
  • I have added a changelog entry under ## [Unreleased] section (if noticeable change)
  • I have added corresponding tests for new features or bug fixes (if applicable)

When exporting a document to PDF, the headings
spacings were too small, the break lines were
not displayed. This commit fixes these issues
by extending PDFExporter.
Move Blocknote styles to separate file.
@@ -123,54 +25,29 @@ export const cssEditor = (readonly: boolean, isDeletedDoc: boolean) => css`
font-size: 1.25rem;
}
a {
color: var(--c--theme--colors--greyscale-600);
color: var(--c--theme--colors--greyscale-500);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional expression ${readonly && padding-left: 10px;} injects the boolean value false into the CSS when readonly is false, producing invalid CSS. Use ${readonly ? 'padding-left: 10px;' : ''} instead.

margin: 1rem 0;
width: 100%;
border: 1px solid #d3d2cf;
}
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The media query uses the invalid syntax @media screen and (width <= 560px). It should be @media screen and (max-width: 560px).

@@ -1,85 +1,11 @@
import { css } from 'styled-components';

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional expression ${readonly && padding-left: 10px;} injects the boolean value false into the CSS when readonly is false, producing invalid CSS. Use ${readonly ? 'padding-left: 10px;' : ''} instead.

@@ -1,85 +1,11 @@
import { css } from 'styled-components';

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The media query uses the invalid syntax @media screen and (width <= 560px). It should be @media screen and (max-width: 560px).

@@ -1,85 +1,11 @@
import { css } from 'styled-components';

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styled-components template literal is not closed properly; the closing backtick and curly brace are missing, which will cause a syntax error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants