styles: change overflow to auto and add back dropdowns min width

This commit is contained in:
Antonella Sgarlatta
2021-06-10 11:18:29 -03:00
parent c0348a0d0a
commit 860e30de20
6 changed files with 8 additions and 8 deletions

View File

@@ -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}

View File

@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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;