Skip to content

Commit 7cc3995

Browse files
committed
fix issue with dropdown cuttoff on pages with less content/smaller sidebar
1 parent 65f9275 commit 7cc3995

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/theme/DocActionsDropdown/styles.module.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@
5656
}
5757

5858
.dropdownMenu {
59-
position: absolute;
60-
top: 100%;
61-
left: 0;
62-
right: 0;
59+
position: fixed;
60+
width: calc(100% - 30px);
61+
max-width: 300px;
6362
background: var(--ifm-background-color);
6463
border: 1px solid var(--ifm-color-emphasis-200);
6564
border-radius: 4px;
66-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
67-
z-index: 1000;
65+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
66+
z-index: 9999;
6867
margin-top: 0.5rem;
68+
max-height: 80vh;
69+
overflow-y: auto;
6970
}
7071

7172
.menuItem {

0 commit comments

Comments
 (0)