Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web: add support for multiline titles #7290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

01zulfi
Copy link
Collaborator

@01zulfi 01zulfi commented Jan 8, 2025

Signed-off-by: 01zulfi [email protected]

Comment on lines +169 to +173
test("note title should allow newlines", () =>
noteTest({ title: "Hello\nhello", content: TEST_NOTE.content }).then(
async ({ db, id }) => {
const note = await db.notes.note(id);
expect(note?.title).toBe("Hello hello");
expect(note?.title).toBe("Hello\nhello");
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't allow newlines in titles. Why is the test being changed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This PR adds support for multilines which includes newlines as well

@thecodrr
Copy link
Contributor

This PR also isn't resizing the title input when the title exceeds screen width and wraps.

@01zulfi
Copy link
Collaborator Author

01zulfi commented Jan 21, 2025

This PR also isn't resizing the title input when the title exceeds screen width and wraps.
There's a limit on how small the title size can be. I'm not sure what the expected behavior is, do you have a suggestion?

@thecodrr
Copy link
Contributor

There's a limit on how small the title size can be. I'm not sure what the expected behavior is, do you have a suggestion?

What do you mean?

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.

2 participants