Skip to content

Commit

Permalink
cherrypick changes for calendar view
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickson-adbe committed Sep 11, 2024
1 parent 6c5020c commit b0fba1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions blocks/gmo-program-details/gmo-program-details.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ body {
max-width: 100%; /* Adjusts the width to leave space for the group count */
display: inline-block; /* Ensures the element respects the max-width */
vertical-align: middle; /* Aligns it properly with other inline elements */
min-width: 52px; /* Ensure at least 5 characters show */
}
& .group-count {
position: absolute;
Expand Down Expand Up @@ -596,8 +597,8 @@ body {
background-color: #9D64E1;
}
}
&#group5 {
background-color: #168a4a;
&.color5 {
background-color: #95dfb696;
border: 1px solid #24a25d;
& .group-header {
background-color: #137941;
Expand Down
3 changes: 1 addition & 2 deletions blocks/gmo-program-details/gmo-program-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,7 @@ async function buildCalendar(dataObj, block, type, mappingArray, period) {
});

contentWrapper.appendChild(groupEl);
groupIndex +=1;

groupIndex = (groupIndex === 5) ? 1 : groupIndex + 1;
};

calendarEl.appendChild(contentWrapper);
Expand Down

0 comments on commit b0fba1f

Please sign in to comment.