-
Notifications
You must be signed in to change notification settings - Fork 301
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
Modeling exercises
: Fix layout overlapping in modeling assessment
#10145
base: develop
Are you sure you want to change the base?
Conversation
- Added a parent container to manage the layout flow of modeling-assessment and additional-feedback sections. - Ensured proper stacking of sections using flexbox and dynamic height adjustments. - Restricted modeling-assessment height to prevent overlap in landscape mode. - Enabled smooth scrolling within modeling-assessment to improve usability. - Added responsive handling for landscape orientation to ensure consistent layout behavior.
Modeling exercises
: Fix layout overlapping in modeling assessment
WalkthroughThe pull request introduces layout and styling modifications to the modeling assessment component. A new parent container with the class Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (4)
src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.scss (2)
11-17
: Consider removing redundant spacing.Since the parent container already implements gap spacing, the
margin-bottom: 2rem
might be redundant and could lead to inconsistent spacing between elements..modeling-assessment { position: relative; height: auto; max-height: 80vh; overflow-y: auto; - margin-bottom: 2rem; scroll-behavior: smooth; }
42-46
: Optimize overflow behavior in landscape mode.Consider using
overflow-y: auto
instead ofscroll
to prevent showing unnecessary scrollbars when content fits within the container.@media screen and (orientation: landscape) { .modeling-assessment { max-height: 70vh; - overflow-y: scroll; + overflow-y: auto; } }src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.html (2)
14-20
: Enhance resize handle accessibility.Consider adding ARIA attributes to improve the resize handle's accessibility:
- <div class="draggable-right"> + <div class="draggable-right" role="separator" aria-label="Resize horizontally"> <fa-icon [icon]="faGripLinesVertical" /> </div>
22-29
: Add accessibility attributes to vertical resize handle.Similar to the horizontal resize handle, enhance accessibility:
- <div class="draggable-bottom"> + <div class="draggable-bottom" role="separator" aria-label="Resize vertically"> <fa-icon [icon]="faGripLines" /> </div>
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.html
(1 hunks)src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.scss
(2 hunks)
🧰 Additional context used
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: server-tests
- GitHub Check: server-style
- GitHub Check: client-tests
- GitHub Check: client-style
- GitHub Check: Build and Push Docker Image
- GitHub Check: Build .war artifact
- GitHub Check: Analyse
🔇 Additional comments (4)
src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.scss (2)
3-9
: Well-structured parent container implementation!The new parent container effectively uses flexbox layout with proper spacing and overflow handling, which should help resolve the layout issues.
33-33
: Good use of dynamic height adjustment!The change from fixed to dynamic height in both containers will help prevent content overflow issues while maintaining proper layout structure.
Also applies to: 39-39
src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.html (2)
1-13
: Excellent implementation of new Angular syntax!The code correctly uses the new
@if
syntax as per guidelines, and the header structure is well-organized with proper flex layout.
32-34
: Clarify the purpose of the empty feedback section.The additional feedback section is currently empty. Please either:
- Add a TODO comment explaining the intended implementation
- Remove it if it's not needed for this PR
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.
Works as expected, tested on TS1
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.
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.
Tested on TS1, works as expected.
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.
Tested on TS1, works as expected. The boxes are not overlapping anymore.
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.
Tested on TS1, everything works as expected
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.
Code
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.
Tested on TS5. Works as described. :)
Checklist
General
Client
Motivation and Context
#10139
Description
Steps for Testing
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Performance Tests
Test Coverage
Screenshots
Summary by CodeRabbit
UI/UX Improvements
Layout Updates
Styling Enhancements