-
Notifications
You must be signed in to change notification settings - Fork 304
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
Programming exercises
: Fix background color and position of problem statement preview
#10325
base: develop
Are you sure you want to change the base?
Programming exercises
: Fix background color and position of problem statement preview
#10325
Conversation
…eader-in-problem-statement-preview
…eader-in-problem-statement-preview
WalkthroughThe changes update and refine several SCSS files to adjust background styling across the application. In the modeling editor, a new background color using 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 (1)
src/main/webapp/app/exercises/programming/manage/instructions-editor/programming-exercise-editable-instruction.scss (1)
31-34
: New Markdown Editor Wrapper Styles.
The introduction of the.markdown-editor-wrapper
class with a background color set tovar(--markdown-preview-editor-background) !important
successfully overrides any scoped styling issues. If possible, consider whether a more specific selector might eventually eliminate the need for!important
.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
src/main/webapp/app/exercises/modeling/shared/modeling-editor.component.scss
(1 hunks)src/main/webapp/app/exercises/programming/manage/instructions-editor/programming-exercise-editable-instruction.scss
(2 hunks)src/main/webapp/content/scss/themes/_dark-variables.scss
(1 hunks)src/main/webapp/content/scss/themes/_default-variables.scss
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- src/main/webapp/app/exercises/modeling/shared/modeling-editor.component.scss
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: client-tests
🔇 Additional comments (4)
src/main/webapp/app/exercises/programming/manage/instructions-editor/programming-exercise-editable-instruction.scss (2)
36-41
: Sticky Navigation for Editor Preview.
The nested.markdown-editor-wrapper .nav
rule applies sticky positioning (withtop: 0
andz-index: 1
) and sets the same dynamic background, ensuring the navigation buttons remain visible while scrolling. This directly addresses the PR objective for improved usability.
52-59
: Enhanced Z-Index for Save Button.
By assigning az-index: 2
to the&__save
element, the save button is guaranteed to appear above overlapping content. This adjustment enhances user interaction by ensuring critical controls remain accessible.src/main/webapp/content/scss/themes/_default-variables.scss (1)
165-169
: Dynamic Background Variable Update.
Updating$markdown-preview-editor-background
to reference$module-bg
ensures the markdown preview editor now derives its background from a centralized, dynamic variable. This change enhances consistency across components and themes.src/main/webapp/content/scss/themes/_dark-variables.scss (1)
240-248
: Standardizing Dark Theme Background.
Changing$markdown-preview-editor-background
to$module-bg
in the dark theme aligns its styling with the default theme. This promotes a consistent visual appearance across themes and meets the PR’s design objectives.
Checklist
General
Client
Motivation and Context
In the programming exercise editor, the problem statement preview currently has a light gray background with a small margin around the edges. This contrasts with the released (non-preview) version, which does not have a background, making the preview appear visually inconsistent.
Additionally, the "Preview" and "Edit" buttons in the preview window are not fixed in place, requiring users to scroll back to the top to switch to edit mode.
Lastly, in the fullscreen editor for modeling exercises, the background color differs from that of the non-fullscreen version.
When you scroll you can only see the safe button:
Modeling editor in fullscreen mode:
Description
I changed the background color to represent the released version by changing the markdown editor background css variable. This means previews in other locations (for example in the lecture description when editing a lecture) it should also display the module background color. Additionally, I fixed the navigation buttons when scrolling. Lastly, i changed the background color of the modeling editor.
Steps for Testing
Prerequisites:
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Manual Tests
Screenshots
Summary by CodeRabbit