فهرست منبع

more log ui tweaks (#3096)

Co-authored-by: David Townley <davidtownley@Davids-MacBook-Air.local>
d-g-town 3 سال پیش
والد
کامیت
028232093a

+ 4 - 1
dashboard/src/components/date-time-picker/react-datepicker.css

@@ -420,6 +420,9 @@
   border-radius: 0.3rem;
   background-color: #26292e;
 }
+.react-datepicker__month {
+  cursor: default
+}
 .react-datepicker__day-names,
 .react-datepicker__week {
   white-space: nowrap;
@@ -466,7 +469,6 @@
 .react-datepicker__month-text,
 .react-datepicker__quarter-text {
   cursor: pointer;
-  background-color: #232527;
 }
 .react-datepicker__day:hover,
 .react-datepicker__month-text:hover,
@@ -556,6 +558,7 @@
   cursor: default;
   color: #999;
   background-color: transparent;
+  cursor: not-allowed;
 }
 .react-datepicker__day--disabled:hover,
 .react-datepicker__month-text--disabled:hover,

+ 17 - 17
dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section/LogsSection.tsx

@@ -272,23 +272,23 @@ const LogsSection: React.FC<Props> = ({
       <>
         <FlexRow isFullscreen={isFullscreen}>
           <Flex>
-            <SearchRowWrapper>
-              <SearchBarWrapper>
-                <i className="material-icons">search</i>
-                <SearchInput
-                  value={searchText}
-                  onChange={(e: any) => {
-                    setSearchText(e.target.value);
-                  }}
-                  onKeyPress={(event) => {
-                    if (event.key === "Enter") {
-                      setEnteredSearchText(escapeRegExp(searchText));
-                    }
-                  }}
-                  placeholder="Search logs..."
-                />
-              </SearchBarWrapper>
-            </SearchRowWrapper>
+            {/*<SearchRowWrapper>*/}
+            {/*  <SearchBarWrapper>*/}
+            {/*    <i className="material-icons">search</i>*/}
+            {/*    <SearchInput*/}
+            {/*      value={searchText}*/}
+            {/*      onChange={(e: any) => {*/}
+            {/*        setSearchText(e.target.value);*/}
+            {/*      }}*/}
+            {/*      onKeyPress={(event) => {*/}
+            {/*        if (event.key === "Enter") {*/}
+            {/*          setEnteredSearchText(escapeRegExp(searchText));*/}
+            {/*        }*/}
+            {/*      }}*/}
+            {/*      placeholder="Search logs..."*/}
+            {/*    />*/}
+            {/*  </SearchBarWrapper>*/}
+            {/*</SearchRowWrapper>*/}
             <QueryModeSelectionToggle
               selectedDate={selectedDate}
               setSelectedDate={setSelectedDate}