-
Notifications
You must be signed in to change notification settings - Fork 154
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
[#2127] Align right panel with welcome title #2229
Conversation
There was a problem hiding this 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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frontend/src/styles/panels.scss
Outdated
@@ -2,7 +2,7 @@ | |||
@import 'z-indices'; | |||
|
|||
.panel-padding { | |||
padding: 2rem 1.5rem 2rem 2.2rem; | |||
padding: 0 0 2rem 2.2rem; |
There was a problem hiding this comment.
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?
padding: 0 0 2rem 2.2rem; | |
padding: 0 1.5rem 2rem 2.2rem; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Folks, any update on this PR? |
Thanks for the update, @jedkohjk. We can also use a line break tool to auto-wrap commit messages at 72 characters. |
The following links are for previewing this pull request:
|
Resolves #2127
Proposed commit message
Other information
Before:
After: