Skip to content

Commit

Permalink
calendar/CalendarEvent: show ellipsis for time when looking at a trun…
Browse files Browse the repository at this point in the history
…cated chunk of a multi-day event
  • Loading branch information
thatoddmailbox committed Aug 22, 2023
1 parent 2b2e9ab commit 2487d82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/calendar/CalendarEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ export default class CalendarEvent extends Component {
displayName = props.item.tags[consts.EVENT_TAG_SHORT_NAME];
}

if (props.item.tags[consts.EVENT_TAG_IS_CONTINUATION]) {
startDisplay = "...";
}

if (props.item.tags[consts.EVENT_TAG_CONTINUES]) {
endDisplay = "...";
}

var groupWidth = 100 / props.groupLength;
var height = durationInMinutes;
if (height < 10) {
Expand Down
4 changes: 4 additions & 0 deletions app/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export default {
EVENT_TAG_ORIGINAL_END: 19,
EVENT_TAG_HIDE_BUILDING_NAME: 20,
EVENT_TAG_HOMEWORK_CLASS: 21,
EVENT_TAG_INSTANCE_START: 22,
EVENT_TAG_INSTANCE_END: 23,
EVENT_TAG_IS_CONTINUATION: 24,
EVENT_TAG_CONTINUES: 25,

CALENDAR_STATUS_UNIMPORTED: 0,
CALENDAR_STATUS_IMPORTED: 1,
Expand Down

0 comments on commit 2487d82

Please sign in to comment.