-
Notifications
You must be signed in to change notification settings - Fork 96
chore: header image fix #358
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
base: development
Are you sure you want to change the base?
chore: header image fix #358
Conversation
Reviewer's GuideConsolidate header image rendering by extracting its markup into a reusable include, updating the base and invitation templates to leverage it, and adding corresponding CSS for consistent styling. Class diagram for header image template refactorclassDiagram
class base.html {
- (removed) header image markup
+ includes header.html
}
class invitation.html {
+ includes header.html
}
class header.html {
+ renders header image if present
}
base.html --> header.html : includes
invitation.html --> header.html : includes
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @Saksham-Sirohi - I've reviewed your changes - here's some feedback:
- Consider extracting the header block into a reusable include or template tag so you don’t duplicate the same markup in multiple views.
- Add
loading="lazy"
(or another lazy-loading mechanism) to the<img>
to prevent blocking render on large header images. - Double-check that all
header_pattern
classes you’re applying indisplay_settings
exist in the stylesheet to avoid unexpected styling.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
0efde7a
to
1ac3d8b
Compare
@Saksham-Sirohi Could you please add screenshots |
@Saksham-Sirohi please respond to reviewer's request, thanks |
1ac3d8b
to
1d7e54d
Compare
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.
Hey @Saksham-Sirohi - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@Saksham-Sirohi Please share full page screenshot (with url) as this would help reviewers to get more context on what pages to look (for UI changes). |
hi @Gagan-Ram in order to test, you will need a public event to test it on or edit your user.py file in cfp/views to allow non-public events |
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.
Hey @Saksham-Sirohi - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `src/pretalx/static/cfp/css/_layout.css:22` </location>
<code_context>
}
+#header-img{
+ padding: 10px;
+ img{
+ width: 100%;
+ height: 240px;
</code_context>
<issue_to_address>
Nesting CSS selectors is not standard in plain CSS.
The nested 'img' selector will not work in plain CSS. Use '#header-img img { ... }' instead for compatibility.
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
8ca6266
to
93eacb0
Compare
93eacb0
to
4acbb0f
Compare
2025-06-28.19-05-04.mov |
9b135af
to
0835de6
Compare
rebase successful please take a look |
Fixes fossasia/eventyay-tickets#1001
Summary by Sourcery
Refactor header image handling by centralizing markup in a template include and adding CSS for consistent styling, fixing display issues (#134).
Bug Fixes:
Enhancements: