styles: reduce tags max width
This commit is contained in:
@@ -35,7 +35,7 @@ const NoteTags = observer(({ application, appState }: Props) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon type="hashtag" className="sn-icon--small color-neutral mr-1" />
|
<Icon type="hashtag" className="sn-icon--small color-neutral mr-1" />
|
||||||
<span className="max-w-md whitespace-nowrap overflow-hidden overflow-ellipsis">
|
<span className="max-w-xs whitespace-nowrap overflow-hidden overflow-ellipsis">
|
||||||
{tag.title}
|
{tag.title}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const NotesContextMenu = observer(({ appState }: Props) => {
|
|||||||
return appState.notes.contextMenuOpen ? (
|
return appState.notes.contextMenuOpen ? (
|
||||||
<div
|
<div
|
||||||
ref={contextMenuRef}
|
ref={contextMenuRef}
|
||||||
className="sn-dropdown max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed"
|
className="sn-dropdown max-h-120 max-w-xs flex flex-col py-2 overflow-y-scroll fixed"
|
||||||
style={{
|
style={{
|
||||||
...appState.notes.contextMenuPosition,
|
...appState.notes.contextMenuPosition,
|
||||||
maxHeight: appState.notes.contextMenuMaxHeight,
|
maxHeight: appState.notes.contextMenuMaxHeight,
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export const NotesOptions = observer(
|
|||||||
maxHeight: tagsMenuMaxHeight,
|
maxHeight: tagsMenuMaxHeight,
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
}}
|
}}
|
||||||
className="sn-dropdown flex flex-col py-2 max-h-120 max-w-80 fixed overflow-y-scroll"
|
className="sn-dropdown flex flex-col py-2 max-h-120 max-w-xs fixed overflow-y-scroll"
|
||||||
>
|
>
|
||||||
{appState.tags.tags.map((tag) => (
|
{appState.tags.tags.map((tag) => (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export const NotesOptionsPanel = observer(({ appState }: Props) => {
|
|||||||
...position,
|
...position,
|
||||||
maxHeight
|
maxHeight
|
||||||
}}
|
}}
|
||||||
className="sn-dropdown sn-dropdown--animated max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed"
|
className="sn-dropdown sn-dropdown--animated max-h-120 max-w-xs flex flex-col py-2 overflow-y-scroll fixed"
|
||||||
>
|
>
|
||||||
{open && (
|
{open && (
|
||||||
<NotesOptions
|
<NotesOptions
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
max-width: 15rem;
|
max-width: 15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.max-w-80 {
|
.max-w-xs {
|
||||||
max-width: 20rem;
|
max-width: 20rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user