From 6e997e7e5d35647a750ed27290edd4dd800d6255 Mon Sep 17 00:00:00 2001 From: Ru Singh Date: Mon, 23 Aug 2021 15:09:43 +0530 Subject: [PATCH] Condense and show all site nav/options on mobile (#1256) * chore(docker): improve repeat contributions workflow * This change adds two new commands to gracefully stop and remove the Postgres and Clickhouse docker containers. To do so, it also gives them a recognizable name. * Additionally, the Postgres container is updated to use a named volume for its data. This lower friction for repeat contributions where one would otherwise sign up and activate their accounts again and again each time. * Format countries modal * Remove unused imports * Run ESLint and make related fixes * ESlint formatting for entry pages modal * WIP: proof of concept for scrollable modals on mobile * Revert "Merge branch 'feature/details-modal-mobile' of github.com:hirusi/analytics" This reverts commit 87e9fb92d079944a2439daae09518c7de847ba1e, reversing changes made to beea6a07c7473322931ebc8d7289a9edef34a783. * Condense and show all site nav/options on mobile --- assets/js/dashboard/datepicker.js | 10 +++++----- assets/js/dashboard/filters.js | 3 ++- assets/js/dashboard/site-switcher.js | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/assets/js/dashboard/datepicker.js b/assets/js/dashboard/datepicker.js index 51042f2945f2..490000d6a301 100644 --- a/assets/js/dashboard/datepicker.js +++ b/assets/js/dashboard/datepicker.js @@ -34,15 +34,15 @@ function renderArrow(query, site, period, prevDate, nextDate) { period ); - const leftClasses = `flex items-center px-2 border-r border-gray-300 rounded-l + const leftClasses = `flex items-center px-1 sm:px-2 border-r border-gray-300 rounded-l dark:border-gray-500 dark:text-gray-100 ${ disabledLeft ? "bg-gray-300 dark:bg-gray-950" : "hover:bg-gray-100 dark:hover:bg-gray-900" }`; - const rightClasses = `flex items-center px-2 rounded-r dark:text-gray-100 ${ + const rightClasses = `flex items-center px-1 sm:px-2 rounded-r dark:text-gray-100 ${ disabledRight ? "bg-gray-300 dark:bg-gray-950" : "hover:bg-gray-100 dark:hover:bg-gray-900" }`; return ( -
+
(this.dropDownNode = node)} >