[Bps-public-commit] rtx-calendar branch allow-custom-field-based-events updated. 1.05-27-g560408c

BPS Git Server git at git.bestpractical.com
Tue Aug 29 11:28:05 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtx-calendar".

The branch, allow-custom-field-based-events has been updated
       via  560408caef5215bbe74173776f8f1485c702ee1d (commit)
      from  de4b3af487295bcab4cdcf804495f0db9be19620 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 560408caef5215bbe74173776f8f1485c702ee1d
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Tue Aug 29 08:24:13 2023 -0300

    Fix sidebar overflowing elements
    
    The filter on status select was overflowing the sidebar when the viewport
    was too small. We fixed this by adding a class and setting a fixed width.
    
    We also made the sidebar width fixed, so that it doesn't change when the
    viewport is resized, avoiding elements to become too small to read.

diff --git a/html/Search/Calendar.html b/html/Search/Calendar.html
index 0629a06..0de17ca 100644
--- a/html/Search/Calendar.html
+++ b/html/Search/Calendar.html
@@ -27,13 +27,14 @@ $FilterOnStatusClear => undef
 <div class="calendar-sidebar">
   <&| /Widgets/TitleBox,
     title => loc('Filter on Status'),
+    class => 'calendar-filter-status-box',
     &>
 
   <form id="FilterOnStatusForm"
   action="<%$RT::WebPath%>/Search/Calendar.html?<%$QueryString%>" method="post">
   <input type="hidden" name="BaseQuery" value="<%$BaseQuery%>" />
   <select name="FilterOnStatus" id="FilterOnStatus"
-    class="selectpicker mt-3 mb-3" multiple="multiple" size="6">
+    class="selectpicker filteronstatus mt-3 mb-3" multiple="multiple" size="6">
 % for my $Status (sort {loc($a) cmp loc($b)} @{RT->Config->Get('CalendarFilterStatuses')}) {
     <option value="<% $Status %>"
 % if (@FilterOnStatus && $FilterOnStatus[0]) {
diff --git a/static/css/calendar.css b/static/css/calendar.css
index 9e859c6..96e9086 100644
--- a/static/css/calendar.css
+++ b/static/css/calendar.css
@@ -78,8 +78,7 @@ table.rtxcalendar td.aweekago {
 }
 
 .calendar-content {
-    float: right;
-    width: 85%;
+    width: auto;
 }
 
 .calendar-sidebar .tipimg {
@@ -100,6 +99,7 @@ a.calendar-toggle-sidebar.off {
     position: relative;
     float: right;
     top: 300px;
+    margin-right: 10px;
 }
 a.calendar-toggle-sidebar::before {
     content: '';
@@ -120,13 +120,20 @@ a.calendar-toggle-sidebar.sidebar-off::before {
 }
 .calendar-sidebar-toggle-content {
     float: left;
-    width: 14%;
+    width: 230px;
 }
 .calendar-sidebar-toggle-content.sidebar-off {
     width:unset;
 }
 .calendar-content.sidebar-off {
-    width: 100%;
-    float: left;
     margin-left: 20px;
 }
+.filteronstatus {
+    width: 100% !important;
+}
+.calendar-filter-status-box {
+    margin-top: 0px;
+}
+.calendar-sidebar {
+    margin-right: 10px;
+}

-----------------------------------------------------------------------

Summary of changes:
 html/Search/Calendar.html |  3 ++-
 static/css/calendar.css   | 17 ++++++++++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
rtx-calendar


More information about the Bps-public-commit mailing list