diff --git a/app/assets/javascripts/components/AutocompleteTagInput.tsx b/app/assets/javascripts/components/AutocompleteTagInput.tsx index 0fcc89edd..799cafcf2 100644 --- a/app/assets/javascripts/components/AutocompleteTagInput.tsx +++ b/app/assets/javascripts/components/AutocompleteTagInput.tsx @@ -135,22 +135,28 @@ export const AutocompleteTagInput: FunctionalComponent = ({ onBlur={closeOnBlur} tabIndex={tabIndex} > - - {tag.title - .split(new RegExp(`(${searchQuery})`, 'gi')) - .map((substring, index) => ( - - {substring} - - ))} + + + {searchQuery === '' ? ( + tag.title + ) : ( + tag.title + .split(new RegExp(`(${searchQuery})`, 'gi')) + .map((substring, index) => ( + + {substring} + + )) + )} + ); })} diff --git a/app/assets/javascripts/components/NoteTags.tsx b/app/assets/javascripts/components/NoteTags.tsx index a77e1894d..8720bffd6 100644 --- a/app/assets/javascripts/components/NoteTags.tsx +++ b/app/assets/javascripts/components/NoteTags.tsx @@ -156,7 +156,7 @@ const NoteTags = observer(({ application, appState }: Props) => {
{ type="hashtag" className="sn-icon--small color-neutral mr-1" /> - + {tag.title} diff --git a/app/assets/stylesheets/_sn.scss b/app/assets/stylesheets/_sn.scss index c3e7e0f4f..b6d7e68d7 100644 --- a/app/assets/stylesheets/_sn.scss +++ b/app/assets/stylesheets/_sn.scss @@ -168,6 +168,10 @@ max-width: 20rem; } +.min-w-5 { + min-width: 1.25rem; +} + .h-1px { height: 1px; } @@ -208,6 +212,10 @@ max-height: 30rem; } +.min-h-5 { + min-height: 1.25rem; +} + .fixed { position: fixed; } @@ -220,8 +228,8 @@ overflow: auto; } -.overflow-y-hidden { - overflow-y: hidden; +.overflow-hidden { + overflow: hidden; } .overflow-ellipsis {