-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16791 from opf/feature/57671-improve-display-of-w…
…ork-package-and-agenda-titles-in-meetings [#57671] Improve display of work package and agenda titles in meetings
- Loading branch information
Showing
3 changed files
with
55 additions
and
28 deletions.
There are no files selected for viewing
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
47 changes: 36 additions & 11 deletions
47
modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass
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,34 +1,59 @@ | ||
@import 'helpers' | ||
|
||
$meeting-agenda-item--presenter-width: 300px | ||
$meeting-agenda-item--presenter-width: 170px | ||
$meeting-agenda-item--presenter-width--mobile: 150px | ||
|
||
.op-meeting-agenda-item | ||
display: grid | ||
grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--presenter-width) fit-content(40px) | ||
grid-template-areas: "drag-handle content duration presenter actions" ".notes notes notes notes" | ||
grid-template-areas: "drag-handle content duration presenter actions" ". title title title title" ". notes notes notes notes" | ||
|
||
&--drag-handle, | ||
&--duration, | ||
&--content, | ||
&--presenter | ||
align-self: center | ||
|
||
&--presenter, | ||
&--actions | ||
align-self: start | ||
|
||
&--duration | ||
white-space: nowrap | ||
justify-self: end | ||
|
||
&--content | ||
overflow-wrap: anywhere | ||
|
||
&--presenter | ||
max-width: $meeting-agenda-item--presenter-width | ||
justify-self: end | ||
|
||
&--duration | ||
white-space: nowrap | ||
&--actions | ||
justify-self: end | ||
margin-top: -5px // Needed because the invisible effect makes the button look misaligned otherwise | ||
|
||
&--content | ||
@include text-shortener | ||
&--title | ||
align-self: center | ||
overflow-wrap: anywhere | ||
|
||
.custom-presenter-flex | ||
margin-left: auto | ||
|
||
@media screen and (max-width: $breakpoint-lg) | ||
grid-template-columns: 20px auto 1fr calc($meeting-agenda-item--presenter-width - 50px) 50px | ||
grid-template-areas: "drag-handle content content content actions" ". duration . presenter presenter" ". notes notes notes notes" | ||
grid-template-columns: 20px auto 1fr auto 50px | ||
grid-template-areas: "drag-handle content content content actions" ". title title title title" ". presenter duration . ." ". notes notes notes notes" | ||
|
||
&--author | ||
justify-self: stretch | ||
|
||
&--presenter | ||
width: inherit | ||
max-width: $meeting-agenda-item--presenter-width--mobile | ||
margin-left: 0 | ||
margin-top: 5px | ||
|
||
&--duration | ||
justify-self: start | ||
margin-top: 5px | ||
margin-left: 8px | ||
|
||
.custom-presenter-flex | ||
margin-left: 0 |
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