Skip to content

Commit efa8daa

Browse files
committed
fix popover arrow
1 parent 437ed17 commit efa8daa

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/renderer/attribute/d.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
[v]
102102
(let [path (-> v svgpath)
103103
segments (.-segments path)]
104-
[:div.flex.flex-col.p-4
104+
[:div.flex.flex-col.p-4.overflow-y-auto
105+
{:style {:max-height "50vh"}}
105106
(map-indexed (fn [i segment]
106107
(let [command (first segment)
107108
{:keys [label url]} (->command command)]

src/renderer/attribute/points.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
:align "end"}
4545
(when state-default?
4646
(let [points (utils/points->vec v)]
47-
[:div.flex.flex-col.py-4.pr-2
47+
[:div.flex.flex-col.py-4.pr-2.overflow-y-auto
48+
{:style {:max-height "50vh"}}
4849
(map-indexed (fn [index [x y]]
4950
^{:key (str "point-" index)}
5051
[:div.grid.grid-flow-col.gap-px.mt-px

src/renderer/styles.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,8 @@ pre {
407407
}
408408

409409
.popover-content {
410-
@apply bg-secondary drop-shadow-lg z-10 rounded overflow-x-hidden overflow-y-auto;
410+
@apply bg-secondary drop-shadow-lg z-10 rounded;
411411
max-width: 350px;
412-
max-height: 50vh;
413412
border: 1px solid var(--border-color);
414413
animation-duration: 400ms;
415414
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);

0 commit comments

Comments
 (0)