-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix layout overlapping in modeling-assessment component
- 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.
- Loading branch information
Anish
committed
Jan 14, 2025
1 parent
e0cda16
commit 7009803
Showing
2 changed files
with
52 additions
and
39 deletions.
There are no files selected for viewing
53 changes: 30 additions & 23 deletions
53
src/main/webapp/app/exercises/modeling/assess/modeling-assessment.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
<div #resizeContainer class="modeling-assessment" [class.resizable]="resizeOptions"> | ||
@if (title || displayPoints) { | ||
<div class="card-header bg-primary text-white"> | ||
@if (title) { | ||
<span>{{ title }}</span> | ||
} | ||
<span class="flex-fill"></span> | ||
@if (displayPoints) { | ||
<jhi-score-display [score]="totalScore" [maxPoints]="maxScore" [maxBonusPoints]="maxBonusPoints" [course]="course" /> | ||
<div class="parent-container"> | ||
<div #resizeContainer class="modeling-assessment" [class.resizable]="resizeOptions"> | ||
@if (title || displayPoints) { | ||
<div class="card-header bg-primary text-white"> | ||
@if (title) { | ||
<span>{{ title }}</span> | ||
} | ||
<span class="flex-fill"></span> | ||
@if (displayPoints) { | ||
<jhi-score-display [score]="totalScore" [maxPoints]="maxScore" [maxBonusPoints]="maxBonusPoints" [course]="course" /> | ||
} | ||
</div> | ||
} | ||
<div class="apollon-row" id="apollon-assessment-row"> | ||
<div #editorContainer class="apollon-container"></div> | ||
@if (resizeOptions && resizeOptions.horizontalResize) { | ||
<div class="draggable-right"> | ||
<fa-icon [icon]="faGripLinesVertical" /> | ||
</div> | ||
} | ||
</div> | ||
} | ||
<div class="apollon-row" id="apollon-assessment-row"> | ||
<div #editorContainer class="apollon-container"></div> | ||
@if (resizeOptions && resizeOptions.horizontalResize) { | ||
<div class="draggable-right"> | ||
<fa-icon [icon]="faGripLinesVertical" /> | ||
@if (resizeOptions && resizeOptions.verticalResize) { | ||
<div class="draggable-bottom"> | ||
<fa-icon [icon]="faGripLines" /> | ||
</div> | ||
} | ||
@if (explanation) { | ||
<jhi-modeling-explanation-editor [explanation]="explanation" [readOnly]="true" /> | ||
} | ||
</div> | ||
|
||
<!-- Additional feedback section starts here --> | ||
<div id="additional-feedback"> | ||
<!-- Feedback block --> | ||
</div> | ||
@if (resizeOptions && resizeOptions.verticalResize) { | ||
<div class="draggable-bottom"> | ||
<fa-icon [icon]="faGripLines" /> | ||
</div> | ||
} | ||
@if (explanation) { | ||
<jhi-modeling-explanation-editor [explanation]="explanation" [readOnly]="true" /> | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters