]> source.dussan.org Git - sonarqube.git/commitdiff
fix creation date facet on issues page
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 22 Sep 2017 09:05:50 +0000 (11:05 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 25 Sep 2017 11:40:46 +0000 (13:40 +0200)
server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
server/sonar-web/src/main/less/components/search-navigator.less

index 721c9c75e88f3541171887bc00f76c59dc8d70d7..78edc628f71cec410cf5e326bc037e7489b10bbc 100644 (file)
@@ -106,7 +106,7 @@ export default class CreationDateFacet extends React.PureComponent {
       createdAt: undefined,
       createdInLast: undefined,
       sinceLeakPeriod: undefined,
-      [property]: toShortNotSoISOString(parseDate(value))
+      [property]: value ? toShortNotSoISOString(parseDate(value)) : undefined
     });
   };
 
@@ -199,12 +199,14 @@ export default class CreationDateFacet extends React.PureComponent {
       <div className="search-navigator-date-facet-selection">
         <DateInput
           className="search-navigator-date-facet-selection-dropdown-left"
+          inputClassName="search-navigator-date-facet-selection-input"
           onChange={this.handlePeriodChangeAfter}
           placeholder={translate('from')}
           value={createdAfter ? toShortNotSoISOString(createdAfter) : undefined}
         />
         <DateInput
           className="search-navigator-date-facet-selection-dropdown-right"
+          inputClassName="search-navigator-date-facet-selection-input"
           onChange={this.handlePeriodChangeBefore}
           placeholder={translate('to')}
           value={createdBefore ? toShortNotSoISOString(createdBefore) : undefined}
index e3a5bbd9d0654842c0d6f4c04a144f0ef06bed43..268629f8e3c800149920bb1efff5104f358bf008 100644 (file)
   font-size: @smallFontSize;
 }
 
+.search-navigator-date-facet-selection-input {
+  width: 115px !important;
+}
+
 .search-navigator-date-facet-selection-dropdown-left {
   float: left;
   .link-no-underline;