Skip to content

Commit 83342bd

Browse files
author
moninla
committed
style: adjust resize handle positioning and cursor styles
1 parent 9135c0e commit 83342bd

File tree

2 files changed

+10
-38
lines changed

2 files changed

+10
-38
lines changed

components/Panel.vue

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ const resizingCursor = computed(() => {
177177
cursor: v-bind(resizingCursor);
178178
}
179179
180+
.tp-panel-resizing * {
181+
user-select: none;
182+
cursor: v-bind(resizingCursor) !important;
183+
}
184+
180185
.tp-panel-resize-handle {
181186
position: absolute;
182187
top: 0;
@@ -189,50 +194,15 @@ const resizingCursor = computed(() => {
189194
}
190195
191196
.tp-panel-resize-handle-left {
192-
left: 0;
197+
left: -8px;
193198
cursor: v-bind(leftHandleCursor);
194199
}
195200
196201
.tp-panel-resize-handle-right {
197-
right: 0;
202+
right: -8px;
198203
cursor: v-bind(rightHandleCursor);
199204
}
200205
201-
.tp-panel-resize-handle::before {
202-
content: '';
203-
position: absolute;
204-
top: 50%;
205-
transform: translateY(-50%);
206-
width: 2px;
207-
height: 40px;
208-
background-color: transparent;
209-
transition: background-color 0.2s ease;
210-
}
211-
212-
.tp-panel-resize-handle-left::before {
213-
right: 3px;
214-
}
215-
216-
.tp-panel-resize-handle-right::before {
217-
left: 3px;
218-
}
219-
220-
.tp-panel-resize-handle:hover {
221-
background-color: var(--figma-color-bg-brand-hover, rgba(24, 160, 251, 0.08));
222-
}
223-
224-
.tp-panel-resize-handle:hover::before {
225-
background-color: var(--figma-color-bg-brand, rgba(24, 160, 251, 0.8));
226-
}
227-
228-
.tp-panel-resize-handle:active {
229-
background-color: var(--figma-color-bg-brand-pressed, rgba(24, 160, 251, 0.15));
230-
}
231-
232-
.tp-panel-resize-handle:active::before {
233-
background-color: var(--figma-color-bg-brand, rgb(24, 160, 251));
234-
}
235-
236206
.tp-panel-header {
237207
flex: 0 0 auto;
238208
height: 41px;
@@ -250,6 +220,9 @@ const resizingCursor = computed(() => {
250220
251221
.tp-panel-main {
252222
flex: 1 1 auto;
223+
/* TODO: find correct way to inject this radius value */
224+
border-bottom-left-radius: var(--radius-lg, 0.8125rem);
225+
border-bottom-right-radius: var(--radius-lg, 0.8125rem);
253226
}
254227
255228
.tp-panel-header-icon {

entrypoints/ui/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ function toggleMinimized() {
6868
transition: width, height;
6969
transition-duration: 0.2s;
7070
transition-timing-function: cubic-bezier(0.87, 0, 0.13, 1);
71-
overflow: hidden;
7271
}
7372
7473
.tp-main-minimized {

0 commit comments

Comments
 (0)