Open ralf-krause opened 2 years ago
View your proposal https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/74, @ralf-krause it would be even wise to have a possibility to set a activity icon size for activity icons appearing in the block drawer. Independently from the size of the icon in the content area. What do you think? Have you ever heard of that request by any of your customers?
Best, Luca
In scss/moodle/variables.scss, there are these variables:
$activity-iconcontainer-height: 50px;
$activity-iconcontainer-width: 50px;
I think these can be leveraged to solve this feature request.
The icons are squares so the need only the setting of one dimension in the Boost Union settings. I think that also the text for the activity type should be removable as I wrote in the top of this issue.
.activityiconcontainer { width: 30px; height: 30px; }
.activitytitle .text-uppercase { display: none; }
Please note: In Moodle 4.3, there has been a change.
See https://github.com/moodle/moodle/blob/d76e211be6ae65fe3982ad97f3fe5c879a7b2daa/theme/boost/upgrade.txt#L5 where it says:
The $activity-iconcontainer-height and $activity-iconcontainer-width variables have been changed from 50px to 52px.
It would be nice to have a setting for the activity icon size and the activity type. Otherwise we must set this in the scss field.