styles: constraint tags width

This commit is contained in:
Antonella Sgarlatta
2021-05-27 11:18:46 -03:00
parent a384abcce2
commit d255057cba
2 changed files with 15 additions and 1 deletions

View File

@@ -35,7 +35,9 @@ const NoteTags = observer(({ application, appState }: Props) => {
}}
>
<Icon type="hashtag" className="sn-icon--small color-neutral mr-1" />
{tag.title}
<span className="max-w-md whitespace-nowrap overflow-hidden overflow-ellipsis">
{tag.title}
</span>
</button>
))}
<AutocompleteTagInput application={application} appState={appState} lastTagRef={lastTagRef} />

View File

@@ -204,6 +204,14 @@
overflow: auto;
}
.overflow-hidden {
overflow: hidden;
}
.overflow-ellipsis {
text-overflow: ellipsis;
}
.items-start {
align-items: flex-start;
}
@@ -220,6 +228,10 @@
white-space: pre-wrap;
}
.whitespace-nowrap {
white-space: nowrap;
}
/**
* A button that is just an icon. Separated from .sn-button because there
* is almost no style overlap.