styles: set max width for tag hint

This commit is contained in:
Antonella Sgarlatta
2021-06-03 15:43:58 -03:00
parent 75813803c3
commit a67039a184
2 changed files with 7 additions and 1 deletions

View File

@@ -33,7 +33,9 @@ export const AutocompleteTagHint = observer(
type="hashtag"
className="sn-icon--small color-neutral mr-1"
/>
{autocompleteSearchQuery}
<span className="max-w-40 whitespace-nowrap overflow-hidden overflow-ellipsis">
{autocompleteSearchQuery}
</span>
</span>
</button>
</>

View File

@@ -190,6 +190,10 @@
max-width: 20rem;
}
.max-w-40 {
max-width: 10rem;
}
.min-w-5 {
min-width: 1.25rem;
}