Skip to content

Commit

Permalink
teams: smoother calendar legend (fixes #8093) (#8094)
Browse files Browse the repository at this point in the history
Co-authored-by: mutugiii <[email protected]>
Co-authored-by: dogi <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2025
1 parent 107f00e commit 8af6436
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.16.59",
"version": "0.16.60",
"myplanet": {
"latest": "v0.22.7",
"min": "v0.21.7"
Expand Down
21 changes: 0 additions & 21 deletions src/app/community/community.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,6 @@ planet-calendar {
overflow-y: auto;
}

.calendar-legend {
padding-top: 10px;
text-align: right;
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 10px;
}

.calendar-legend .legend-item {
display: inline-flex;
align-items: center;
}

.calendar-legend .legend-color {
width: 20px;
height: 20px;
margin-right: 10px;
border-radius: 4px;
}

.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
Expand Down
20 changes: 20 additions & 0 deletions src/app/shared/calendar.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.calendar-legend {
padding-top: 10px;
text-align: right;
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 10px;
}

.calendar-legend .legend-item {
display: inline-flex;
align-items: center;
}

.calendar-legend .legend-color {
width: 20px;
height: 20px;
margin-right: 10px;
border-radius: 4px;
}
1 change: 1 addition & 0 deletions src/app/shared/calendar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { addDateAndTime, styleVariables } from './utils';

@Component({
selector: 'planet-calendar',
styleUrls: [ './calendar.component.scss' ],
template: `
<full-calendar #calendar [options]="calendarOptions"></full-calendar>
<div class="calendar-legend" *ngIf="showLegend">
Expand Down

0 comments on commit 8af6436

Please sign in to comment.