Skip to content

Commit 9946631

Browse files
authored
fix: added fix for query suggestions position (#8719)
* fix: added fix for query suggestions position * chore: added box-shadows in the dropdowns
1 parent 3a2eab2 commit 9946631

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

frontend/src/components/QueryBuilderV2/QueryV2/QueryAddOns/QueryAddOns.styles.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,21 @@
111111
border-radius: 2px !important;
112112
font-size: 12px !important;
113113
font-weight: 500 !important;
114-
margin-top: -2px !important;
115-
width: 100% !important;
116114
position: absolute !important;
117-
top: 38px !important;
115+
top: calc(100% + 6px) !important;
118116
left: 0px !important;
117+
right: 0px !important;
119118

120119
border-radius: 4px;
121120
border: 1px solid var(--bg-slate-200, #1d212d);
122-
border-top: none !important;
123-
border-top-left-radius: 0px !important;
124-
border-top-right-radius: 0px !important;
125121
background: linear-gradient(
126122
139deg,
127123
rgba(18, 19, 23, 0.8) 0%,
128124
rgba(18, 19, 23, 0.9) 98.68%
129125
) !important;
130126
backdrop-filter: blur(20px);
131127
box-sizing: border-box;
128+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
132129
font-family: 'Space Mono', monospace !important;
133130

134131
ul {
@@ -330,6 +327,7 @@
330327
background: var(--bg-vanilla-100) !important;
331328
border: 1px solid var(--bg-vanilla-300) !important;
332329
color: var(--bg-ink-500) !important;
330+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
333331

334332
ul {
335333
li {

frontend/src/components/QueryBuilderV2/QueryV2/QueryAggregation/QueryAggregation.styles.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,22 @@
6363
border-radius: 2px !important;
6464
font-size: 12px !important;
6565
font-weight: 500 !important;
66-
margin-top: 8px !important;
6766
min-width: 400px !important;
6867
position: absolute !important;
68+
top: calc(100% + 6px) !important;
6969
left: 0px !important;
70-
width: 100% !important;
70+
right: 0px !important;
7171

7272
border-radius: 4px;
7373
border: 1px solid var(--bg-slate-200, #1d212d);
74-
border-top: none !important;
75-
border-top-left-radius: 0px !important;
76-
border-top-right-radius: 0px !important;
7774
background: linear-gradient(
7875
139deg,
7976
rgba(18, 19, 23, 0.8) 0%,
8077
rgba(18, 19, 23, 0.9) 98.68%
8178
) !important;
8279
backdrop-filter: blur(20px);
8380
box-sizing: border-box;
81+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
8482
font-family: 'Space Mono', monospace !important;
8583

8684
ul {
@@ -269,6 +267,7 @@
269267
background: var(--bg-vanilla-100) !important;
270268
border: 1px solid var(--bg-vanilla-300) !important;
271269
color: var(--bg-ink-500) !important;
270+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
272271

273272
ul {
274273
li {

frontend/src/components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch.styles.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
.cm-editor {
5050
border-radius: 2px;
51-
overflow: hidden;
51+
// overflow: hidden;
5252
background-color: transparent !important;
5353

5454
&:focus-within {
@@ -75,11 +75,11 @@
7575
border-radius: 2px !important;
7676
font-size: 12px !important;
7777
font-weight: 500 !important;
78-
margin-top: -2px !important;
7978
min-width: 400px !important;
80-
position: relative !important;
81-
top: 0px !important;
79+
position: absolute !important;
80+
top: calc(100% + 6px) !important;
8281
left: 0px !important;
82+
right: 0px !important;
8383

8484
border-radius: 4px;
8585
border: 0px;
@@ -91,6 +91,8 @@
9191
backdrop-filter: blur(20px);
9292
box-sizing: border-box;
9393
font-family: 'Space Mono', monospace !important;
94+
border: 1px solid var(--bg-slate-200);
95+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
9496

9597
ul {
9698
width: 100% !important;
@@ -571,9 +573,9 @@
571573

572574
.cm-tooltip-autocomplete {
573575
background: var(--bg-vanilla-100) !important;
574-
575-
border: 0px;
576+
border: 1px solid var(--bg-vanilla-300);
576577
backdrop-filter: blur(20px);
578+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
577579

578580
ul {
579581
li {

0 commit comments

Comments
 (0)