@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleaning up day view sidebar css

Summary: Cleaning up day view sidebar css

Test Plan: All day events in day view sidebar should look like links, not boxes

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12801

+9 -13
+2 -2
resources/celerity/map.php
··· 120 120 'rsrc/css/layout/phabricator-hovercard-view.css' => '44394670', 121 121 'rsrc/css/layout/phabricator-side-menu-view.css' => 'c1db9e9c', 122 122 'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894', 123 - 'rsrc/css/phui/calendar/phui-calendar-day.css' => '49037167', 123 + 'rsrc/css/phui/calendar/phui-calendar-day.css' => '38891735', 124 124 'rsrc/css/phui/calendar/phui-calendar-list.css' => 'c1d0ca59', 125 125 'rsrc/css/phui/calendar/phui-calendar-month.css' => '873e00da', 126 126 'rsrc/css/phui/calendar/phui-calendar.css' => '8675968e', ··· 777 777 'phui-box-css' => '7b3a2eed', 778 778 'phui-button-css' => 'de610129', 779 779 'phui-calendar-css' => '8675968e', 780 - 'phui-calendar-day-css' => '49037167', 780 + 'phui-calendar-day-css' => '38891735', 781 781 'phui-calendar-list-css' => 'c1d0ca59', 782 782 'phui-calendar-month-css' => '873e00da', 783 783 'phui-crumbs-view-css' => '594d719e',
+5 -3
src/view/phui/calendar/PHUICalendarDayView.php
··· 268 268 } 269 269 270 270 private function renderSidebarBox($events, $title) { 271 - $widget = new PHUICalendarWidgetView(); 271 + $widget = id(new PHUICalendarWidgetView()) 272 + ->addClass('calendar-day-view-sidebar'); 272 273 273 274 $list = id(new PHUICalendarListView()) 274 275 ->setUser($this->user); ··· 276 277 if (count($events) == 0) { 277 278 $list->showBlankState(true); 278 279 } else { 279 - foreach ($events as $event) { 280 + $sorted_events = msort($events, 'getEpochStart'); 281 + foreach ($sorted_events as $event) { 280 282 $list->addEvent($event); 281 283 } 282 284 } ··· 388 390 $name = phutil_tag( 389 391 'a', 390 392 array( 391 - 'class' => 'all-day', 393 + 'class' => 'day-view-all-day', 392 394 'href' => $event->getURI(), 393 395 ), 394 396 $event->getName());
-6
src/view/phui/calendar/PHUICalendarListView.php
··· 4 4 5 5 private $events = array(); 6 6 private $blankState; 7 - private $isDayView = false; 8 7 9 8 public function addEvent(AphrontCalendarEventView $event) { 10 9 $this->events[] = $event; 11 - return $this; 12 - } 13 - 14 - public function setIsDayView($is_day_view) { 15 - $this->isDayView = $is_day_view; 16 10 return $this; 17 11 } 18 12
+2 -2
webroot/rsrc/css/phui/calendar/phui-calendar-day.css
··· 49 49 color: {$greytext}; 50 50 } 51 51 52 - .all-day { 52 + .day-view-all-day { 53 53 border: 1px solid {$blueborder}; 54 54 height: 12px; 55 55 margin: 0; ··· 60 60 color: {$greytext}; 61 61 } 62 62 63 - .phui-calendar-day-event + .phui-calendar-day-event .all-day { 63 + .phui-calendar-day-event + .phui-calendar-day-event .day-view-all-day { 64 64 border-top-style: none; 65 65 border-top-width: 0; 66 66 }