Skip to content

Commit

Permalink
BaseGrid: Remove .starts-at and adjust an entry's time instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Apr 16, 2024
1 parent a02c930 commit fc80788
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions library/Notifications/Widget/Calendar/BaseGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,6 @@ protected function assembleEntry(
}

if ($startText) {
$title->addHtml(
HtmlElement::create(
'div',
['class' => 'starts-at'],
$startText
)
);
$titleAttr = $startText . ' ' . $titleAttr;
}

Expand All @@ -404,7 +397,7 @@ protected function assembleEntry(
Attributes::create([
'datetime' => $entry->getStart()->format(DateTimeInterface::ATOM)
]),
Text::create($entry->getStart()->format('H:i'))
Text::create($entry->getStart()->format($startText ? 'd/m/y H:i' : 'H:i'))
));
}

Expand Down

0 comments on commit fc80788

Please sign in to comment.