Skip to content

Commit be5836b

Browse files
committed
fix: always show resize cursor during resizing
1 parent 567e192 commit be5836b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

apps/frontend/src/app/ui/resizer/resizer.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class ResizerComponent {
1919
onMouseDown(event: MouseEvent) {
2020
this.resizing = true;
2121
this.startX = event.clientX;
22+
document.body.classList.add('resizing');
2223
event.preventDefault();
2324
}
2425

@@ -38,5 +39,6 @@ export class ResizerComponent {
3839
@HostListener('document:mouseup')
3940
onMouseUp() {
4041
this.resizing = false;
42+
document.body.classList.remove('resizing');
4143
}
4244
}

apps/frontend/src/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,7 @@ a.docu-link {
105105
font-weight: normal;
106106
margin-left: 20px;
107107
}
108+
109+
.resizing {
110+
cursor: ew-resize;
111+
}

0 commit comments

Comments
 (0)