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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy