-
Notifications
You must be signed in to change notification settings - Fork 303
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 padding issue in task display
#10151
Programming exercises
: Fix padding issue in task display
#10151
Conversation
Programming Exercises
: Fix padding issue in task displayProgramming exercises
: Fix padding issue in task display
WalkthroughThe pull request involves modifications to two SCSS files related to programming exercise instructions. The changes primarily affect the styling of headers and buttons in the instruction step wizard. In the 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/shared/instructions-render/step-wizard/programming-exercise-instruction-step-wizard.scss (1)
82-83
: LGTM! Good use of SCSS nesting and consistent naming.The changes effectively address the UI consistency issue by properly grouping similar states together. The use of SCSS nesting and consistent naming conventions makes the code maintainable.
Consider extracting common values into variables.
For better maintainability, consider extracting the font size
0.4rem
into a variable, similar to how$step-font-size
is used.$step-font-size: 0.6rem; +$step-icon-size: 0.4rem; $step-button-size: 21px; // ... later in the file & &--no-result.btn, .btn.not-done, & &--not-executed.btn { color: $gray-600; - font-size: 0.4rem; + font-size: $step-icon-size; }
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/main/webapp/app/exercises/programming/manage/instructions-editor/programming-exercise-editable-instruction.scss
(1 hunks)src/main/webapp/app/exercises/programming/shared/instructions-render/step-wizard/programming-exercise-instruction-step-wizard.scss
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- src/main/webapp/app/exercises/programming/manage/instructions-editor/programming-exercise-editable-instruction.scss
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Codacy Static Code Analysis
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 TS3, 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.
…play-in-code-editor
…play-in-code-editor
Checklist
General
Client
Motivation and Context
Currently, when editing a programming exercise using the online editor, the task display looks buggy (the border touches the icons, and the background color is different):
Additionally, the task display for not executed tests looks different to the one for tests that have no result. These should look the same (the circle is black and is bigger than it should be, look at "Screenshots" for how it is supposed to look like).
Description
I removed the border and changed the background color of the task display so that it blends in better with the rest of the components.
Steps for Testing
Prerequisites:
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
Manual Tests
Screenshots
Summary by CodeRabbit