diff --git a/css/devstyles.css b/css/devstyles.css index fc123fd..342369a 100644 --- a/css/devstyles.css +++ b/css/devstyles.css @@ -125,12 +125,19 @@ body.path-local-treestudyplan .editmode-switch-form > * { --studyplan-filter-width: auto; /* better leave this at auto for now*/ --studyplan-course-width: auto; /* better leave this at auto for now*/ } +.path-local-treestudyplan .t-studyplan-limit-width, +.features-treestudyplan .t-studyplan-limit-width { + max-width: 92vw; +} .path-local-treestudyplan .t-studyplan-scrollable, .path-local-treestudyplan .r-studyplan-scrollable, .features-treestudyplan .t-studyplan-scrollable, .features-treestudyplan .r-studyplan-scrollable { - overflow-x: scroll; - overflow-y: clip; /* to ensure the x scrollbar does not cause an y scrollbar to appear */ + /* below lines actually have the important flag set, since we do not want these very specific classes + to be overridden anywhere - we always need them to be scrollable */ + overflow-x: scroll !important; /* stylelint-disable-line declaration-no-important */ + /* to ensure the x scrollbar does not cause an y scrollbar to appear */ + overflow-y: clip !important; /* stylelint-disable-line declaration-no-important */ scrollbar-color: var(--primary) color-mix(in srgb, var(--primary) 20%, white); scrollbar-width: thin; } diff --git a/edit-plan.php b/edit-plan.php index 15d7953..6841df8 100644 --- a/edit-plan.php +++ b/edit-plan.php @@ -112,7 +112,7 @@ function t($str, $param = null, $plugin = 'local_treestudyplan') { print $OUTPUT->header(); ?> -