From ec759ef46f17d6f782808e3d32061e4c5368c45d Mon Sep 17 00:00:00 2001 From: lkassianik Date: Mon, 18 May 2015 16:04:35 -0700 Subject: [PATCH] Mobile day view should display event list, not day table Summary: Closes T8178, Mobile day view should display event list, not day table Test Plan: Open day view on a device, observe that day table is hidden. Reviewers: chad, #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8178 Differential Revision: https://secure.phabricator.com/D12916 --- resources/celerity/map.php | 4 ++-- src/view/phui/calendar/PHUICalendarDayView.php | 2 +- webroot/rsrc/css/phui/calendar/phui-calendar-day.css | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 3f58140cad..a7670beff0 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -120,7 +120,7 @@ return array( 'rsrc/css/layout/phabricator-hovercard-view.css' => 'dd9121a9', 'rsrc/css/layout/phabricator-side-menu-view.css' => 'c1db9e9c', 'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894', - 'rsrc/css/phui/calendar/phui-calendar-day.css' => '3b4a65d8', + 'rsrc/css/phui/calendar/phui-calendar-day.css' => 'c0cf782a', 'rsrc/css/phui/calendar/phui-calendar-list.css' => '3e713fc7', 'rsrc/css/phui/calendar/phui-calendar-month.css' => '017a953b', 'rsrc/css/phui/calendar/phui-calendar.css' => '8345be98', @@ -761,7 +761,7 @@ return array( 'phui-box-css' => '7b3a2eed', 'phui-button-css' => 'de610129', 'phui-calendar-css' => '8345be98', - 'phui-calendar-day-css' => '3b4a65d8', + 'phui-calendar-day-css' => 'c0cf782a', 'phui-calendar-list-css' => '3e713fc7', 'phui-calendar-month-css' => '017a953b', 'phui-crumbs-view-css' => '594d719e', diff --git a/src/view/phui/calendar/PHUICalendarDayView.php b/src/view/phui/calendar/PHUICalendarDayView.php index 5afff57d3b..45a4f6d1bc 100644 --- a/src/view/phui/calendar/PHUICalendarDayView.php +++ b/src/view/phui/calendar/PHUICalendarDayView.php @@ -185,7 +185,7 @@ final class PHUICalendarDayView extends AphrontView { $layout = id(new AphrontMultiColumnView()) ->addColumn($sidebar, 'third') - ->addColumn($table_box, 'thirds') + ->addColumn($table_box, 'thirds phui-day-view-column') ->setFluidLayout(true) ->setGutter(AphrontMultiColumnView::GUTTER_MEDIUM); diff --git a/webroot/rsrc/css/phui/calendar/phui-calendar-day.css b/webroot/rsrc/css/phui/calendar/phui-calendar-day.css index 4f2c8a9e3d..715bd6fd3b 100644 --- a/webroot/rsrc/css/phui/calendar/phui-calendar-day.css +++ b/webroot/rsrc/css/phui/calendar/phui-calendar-day.css @@ -2,6 +2,14 @@ * @provides phui-calendar-day-css */ +.device .phui-day-view-column { + display: none; +} + +.device .phui-calendar-list-container { + width: 100%; +} + .phui-calendar-day-view { overflow: scroll; width: 100%;