Skip to content
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

Plagiarism checks: Fix scrolling issue on side-by-side viewer for modeling #9748

Merged
merged 7 commits into from
Nov 16, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ <h4 class="modal-title" jhiTranslate="artemisApp.modelingEditor.helpModal.title"
}
</div>
@if (readOnly) {
<div class="d-flex align-items-center justify-content-center readonly-diagram" [innerHtml]="readOnlySVG" [style.margin-top]="isFullScreen ? '30px' : ''"></div>
<div
class="d-flex align-items-center justify-content-center readonly-diagram scroll-container"
[innerHtml]="readOnlySVG"
[ngClass]="{ 'full-screen-margin': isFullScreen }"
></div>
}

@if (withExplanation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,24 @@ $draggable-width: 15px;

.readonly-diagram {
height: 100%;
overflow: hidden;
overflow-x: auto;
overflow-y: auto;
}
AjayvirS marked this conversation as resolved.
Show resolved Hide resolved

.scroll-container {
scrollbar-width: thin; /* Firefox */
&::-webkit-scrollbar {
width: 6px; /* WebKit */
}

&::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 3px;
}
}

.full-screen-margin {
margin-top: 30px;
}

@keyframes spin {
Expand Down
Loading