diff --git a/assets/development/styles/organization.css b/assets/development/styles/organization.css index ac388dd..773b051 100644 --- a/assets/development/styles/organization.css +++ b/assets/development/styles/organization.css @@ -478,6 +478,17 @@ section { ********************************************************************************/ +.schedule.dense { + display: grid; + grid-template-columns: repeat(2, 1fr); + width: 100%; + column-gap: 1em; +} + +.schedule.dense .schedule-category-days-container { + margin-right: 7em; +} + .schedule-category { margin-bottom: 1em; } @@ -952,6 +963,13 @@ RESPONSIVE width: 80%; } + /** + Schedule + **/ + .schedule.dense { + grid-template-columns: 1fr; + } + .schedule-category-header { padding-left: 1em; padding-right: 1em; diff --git a/src/controllers/PublicController.ts b/src/controllers/PublicController.ts index 2c5eeac..1f96a9f 100644 --- a/src/controllers/PublicController.ts +++ b/src/controllers/PublicController.ts @@ -237,6 +237,17 @@ export default class PublicController { }) } + if (version.schedule.length > 8) { + let isFirst = true; + version.scheduleParts = [[], []] + version.schedule.forEach((schedule: any) => { + version.scheduleParts[isFirst ? 0 : 1].push(schedule) + isFirst = !isFirst + }) + } else { + version.scheduleParts = [version.schedule] + } + version.cutDescription = Utils.isStrUsable(version, 'descriptionLong') && version.descriptionLong.length > 800 // if (version.cutDescription) { diff --git a/views/organization.twig b/views/organization.twig index d43d99a..fad5c83 100644 --- a/views/organization.twig +++ b/views/organization.twig @@ -149,54 +149,58 @@