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

New changes #1045

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

New changes #1045

wants to merge 6 commits into from

Conversation

MitanOmar
Copy link
Member

@MitanOmar MitanOmar commented Dec 17, 2024

This is removing the "close" button inside the document side bar, because it is somewhat redundant (there is another button that does the same thing outside of the sidebar) and it causes a layout issue when editing the document title.

Before:
image

After:
Screenshot from 2024-12-17 16-49-30

@MitanOmar MitanOmar requested a review from czosel December 17, 2024 08:34
@MitanOmar MitanOmar self-assigned this Dec 17, 2024
// if the user cancel title editing,
// return edit title input value to be the orginal title
this.title = this.args.document.title;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's fix it for the description as well, that way you might be able to use [name] generically

@@ -88,9 +88,6 @@ module("Acceptance | documents", function (hooks) {
assert
.dom("[data-test-single-doc-details] [data-test-title]")
.hasText(document.title);

await click("[data-test-close]");
assert.dom("[data-test-document-side-panel]").hasClass("closed");
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you could click data-test-toggle-side-panel instead?

file.createdAt
month="2-digit"
day="2-digit"
year="numeric"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's try the two-row style instead, which should also work well on smaller screens

@MitanOmar MitanOmar requested a review from czosel December 18, 2024 12:49
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