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

Align right panel with welcome title #2229

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jedkohjk
Copy link

@jedkohjk jedkohjk commented Jun 30, 2024

Resolves #2127

Proposed commit message

Align panel titles

Other information

Before:

Before

After:

After

@github-actions github-actions bot requested a deployment to dashboard-2229 June 30, 2024 14:56 Abandoned
@github-actions github-actions bot requested a deployment to docs-2229 June 30, 2024 14:56 Abandoned
@github-actions github-actions bot requested a deployment to dashboard-2229 June 30, 2024 15:34 Abandoned
@github-actions github-actions bot requested a deployment to docs-2229 June 30, 2024 15:34 Abandoned
Copy link
Member

@ckcherry23 ckcherry23 left a comment

Choose a reason for hiding this comment

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

Hi @jedkohjk, thanks for working on this.

In issue #2127, the 'report title' we refer to is the custom title specified by the user for the top of the left panel, which you can specify using this: https://reposense.org/ug/customizingReports.html#add-a-title. Please use an H1 report title for testing.



Consequently, we would like the right panel's 1. Welcome text, 2. 'Code Panel', and 3. 'Commit Panel' to be top-aligned with the left panel's Report Title. This means the right panel headings will move upwards and will also allow for lesser scrolling.

Please also ensure that the CI passes after you make your changes. Thank you!

@github-actions github-actions bot requested a deployment to dashboard-2229 June 30, 2024 18:15 Abandoned
@github-actions github-actions bot requested a deployment to docs-2229 June 30, 2024 18:15 Abandoned
@github-actions github-actions bot requested a deployment to dashboard-2229 June 30, 2024 18:25 Abandoned
@github-actions github-actions bot requested a deployment to docs-2229 June 30, 2024 18:25 Abandoned
@jedkohjk jedkohjk requested a review from ckcherry23 July 1, 2024 04:18
Copy link
Member

@ckcherry23 ckcherry23 left a comment

Choose a reason for hiding this comment

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

Thank you @jedkohjk for your first contribution and the preview screenshots! I have a few things to clarify.

Also, the macOS 11 CI is failing as recorded in #2231. I believe that issue must be fixed before we can merge any PRs.

@@ -2,7 +2,7 @@
@import 'z-indices';

.panel-padding {
padding: 2rem 1.5rem 2rem 2.2rem;
padding: 0 0 2rem 2.2rem;
Copy link
Member

Choose a reason for hiding this comment

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

I think we can keep the right padding?

Suggested change
padding: 0 0 2rem 2.2rem;
padding: 0 1.5rem 2rem 2.2rem;

Copy link
Author

Choose a reason for hiding this comment

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

Added

v-on:click="toggleAllFileActiveProperty(true)"
) show all file details
a(v-if="activeFilesCount > 0", v-on:click="toggleAllFileActiveProperty(false)") hide all file details
h2
Copy link
Member

Choose a reason for hiding this comment

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

Was this h2 added to provide padding or for semantic reasons? Because the .toolbar--multiline wouldn't be a heading right?

Copy link
Author

Choose a reason for hiding this comment

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

Without the h2, the Code Panel will appear at the top of the screen, above the title.

without h2

If .toolbar--multiline is not included in h2, it appears on the line below instead.

not in h2

The expected behaviour is as follows:

expected

Copy link
Member

Choose a reason for hiding this comment

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

It may be possible to align by adding top padding for these elements instead of making them both h2, but this works well enough.

@github-actions github-actions bot requested a deployment to dashboard-2229 July 1, 2024 18:07 Abandoned
@github-actions github-actions bot requested a deployment to docs-2229 July 1, 2024 18:07 Abandoned
Copy link
Member

@ckcherry23 ckcherry23 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ckcherry23 ckcherry23 requested a review from a team July 2, 2024 18:03
Copy link
Contributor

@jonasongg jonasongg left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

Align report title with right panel
3 participants