styles: change overflow to auto and add back dropdowns min width
This commit is contained in:
@@ -117,7 +117,7 @@ export const AutocompleteTagInput = observer(({ appState }: Props) => {
|
|||||||
style={{ maxHeight: dropdownMaxHeight, maxWidth: tagsContainerMaxWidth }}
|
style={{ maxHeight: dropdownMaxHeight, maxWidth: tagsContainerMaxWidth }}
|
||||||
onBlur={closeOnBlur}
|
onBlur={closeOnBlur}
|
||||||
>
|
>
|
||||||
<div className="overflow-y-scroll">
|
<div className="overflow-y-auto">
|
||||||
{autocompleteTagResults.map((tagResult) => (
|
{autocompleteTagResults.map((tagResult) => (
|
||||||
<AutocompleteTagResult
|
<AutocompleteTagResult
|
||||||
key={tagResult.uuid}
|
key={tagResult.uuid}
|
||||||
|
|||||||
@@ -23,7 +23,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-xs 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-auto fixed"
|
||||||
style={{
|
style={{
|
||||||
...appState.notes.contextMenuPosition,
|
...appState.notes.contextMenuPosition,
|
||||||
maxHeight: appState.notes.contextMenuMaxHeight,
|
maxHeight: appState.notes.contextMenuMaxHeight,
|
||||||
|
|||||||
@@ -159,7 +159,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-xs fixed overflow-y-scroll"
|
className="sn-dropdown flex flex-col py-2 max-h-120 max-w-xs fixed overflow-y-auto"
|
||||||
>
|
>
|
||||||
{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-xs 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-auto fixed"
|
||||||
>
|
>
|
||||||
{open && (
|
{open && (
|
||||||
<NotesOptions
|
<NotesOptions
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ const SessionsModal: FunctionComponent<{
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sk-panel-content overflow-y-scroll">
|
<div class="sk-panel-content overflow-y-auto">
|
||||||
{refreshing ? (
|
{refreshing ? (
|
||||||
<>
|
<>
|
||||||
<div class="sk-spinner small info"></div>
|
<div class="sk-spinner small info"></div>
|
||||||
|
|||||||
@@ -275,8 +275,8 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflow-y-scroll {
|
.overflow-y-auto {
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflow-auto {
|
.overflow-auto {
|
||||||
@@ -360,7 +360,7 @@
|
|||||||
|
|
||||||
.sn-dropdown {
|
.sn-dropdown {
|
||||||
@extend .bg-default;
|
@extend .bg-default;
|
||||||
// @extend .min-w-80;
|
@extend .min-w-80;
|
||||||
@extend .rounded;
|
@extend .rounded;
|
||||||
@extend .box-shadow;
|
@extend .box-shadow;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user