soumaeda 2 лет назад
Родитель
Сommit
7947dd30ae

+ 9 - 0
apps/app/src/styles/_editor.scss

@@ -117,6 +117,15 @@
 
     .grw-taglabels-container {
       margin-bottom: 0;
+
+      // To scroll tags horizontally
+      .grw-tag-labels.form-inline {
+        flex-flow: row nowrap;
+        width: 100%;
+        overflow-x: auto;
+        overflow-y: hidden;
+        scrollbar-width: thin;
+      }
     }
   }
 

+ 16 - 0
apps/app/src/styles/_override-rbt.scss

@@ -1,5 +1,14 @@
 // override react-bootstrap-typeahead styles
 // see: https://github.com/ericgio/react-bootstrap-typeahead
+.form-group:not(.has-error) {
+  .rbt-input.form-control {
+    // focus
+    &.focus {
+      border-color: inherit;
+    }
+  }
+}
+
 .rbt-input-wrapper {
   .close.rbt-close {
     // default bootstrap .close has padding 0
@@ -12,3 +21,10 @@
   display: none;
 }
 
+// seamless border for .input-group-prepend
+.input-group-prepend + div {
+  .rbt .rbt-input-main {
+    border-top-left-radius: 0;
+    border-bottom-left-radius: 0;
+  }
+}

+ 1 - 1
apps/app/src/styles/theme/_apply-colors-dark.scss

@@ -94,7 +94,7 @@
   //     background-color: hsl.lighten(var(--bgcolor-global),5%);
   //   }
 
-  //   .input-group > .input-group-text {
+  //   .input-group > .input-group-prepend > .input-group-text {
   //     color: theme-color('light');
   //     background-color: theme-color('secondary');
   //     border: 1px solid theme-color('secondary');

+ 1 - 1
apps/app/test/cypress/e2e/30-search/30-search--search.cy.ts

@@ -387,7 +387,7 @@ context('Search current tree with "prefix":', () => {
 
     cy.get('.grw-global-search-container').within(() => {
       cy.get('.dropdown-menu.show').should('be.visible');
-      cy.get('.show > div > button:nth-child(2)').click();
+      cy.get('.input-group-prepend.show > div > button:nth-child(2)').click();
       cy.get('.rbt-input').should('be.focused');
       cy.screenshot(`${ssPrefix}1-search-input-focused`);
     });