-
+
@@ -53,21 +61,16 @@ const context = useContextStore();
padding: $small;
background: $gray3;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
transform-origin: top left;
font-size: 0.875rem;
.context-item {
width: 100%;
- height: 2.25rem;
display: flex;
justify-content: flex-start;
align-items: center;
cursor: default;
- padding: 0 $small;
+ padding: $small;
border-radius: $small;
color: rgb(255, 255, 255);
position: relative;
@@ -84,13 +87,10 @@ const context = useContextStore();
position: absolute;
right: -13rem;
width: 13rem;
+ max-height: 21.25rem;
- padding: $small;
+ padding: $small !important;
background: $gray3;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
transform: scale(0);
transform-origin: left;
}
@@ -145,6 +145,7 @@ const context = useContextStore();
.separator {
height: 1px;
+ padding: 0;
}
.critical {
@@ -176,4 +177,12 @@ const context = useContextStore();
transform-origin: bottom right;
}
}
+
+.context-many-kids {
+ .context-item > .children {
+ top: -0.5rem;
+ overflow-y: auto;
+ scrollbar-width: none;
+ }
+}
diff --git a/src/interfaces.ts b/src/interfaces.ts
index 0aacefeb..7a2148e7 100644
--- a/src/interfaces.ts
+++ b/src/interfaces.ts
@@ -40,7 +40,7 @@ interface Option {
type?: string;
label?: string;
action?: Function;
- children?: Option[] |Promise