discourse/plugins/chat/assets/stylesheets/common/chat-side-panel-resizer.scss
Joffrey JAFFEUX a982b6765f
FIX: allows to resize panels on tablets (#22640)
On tablets like iPad where we allow channel and thread to be on the same screen, it was not possible to resize the panels due to code being thought for mouse events. This commit should now correctly allow for this.

The "resizer" has also been made larger to simplify touching.

No test as it's hard to test on iPad and dragging events are also complex.
2023-07-17 15:11:51 +02:00

31 lines
469 B
SCSS

.chat-side-panel-resizer {
top: 0;
bottom: 0;
position: absolute;
z-index: calc(z("header") - 1);
transition: background-color 0.15s 0.15s;
background-color: transparent;
.touch & {
left: -6px;
width: 10px;
&:active {
cursor: col-resize;
background: var(--tertiary);
}
}
.no-touch & {
left: -3px;
width: 5px;
&:hover,
&:active {
cursor: col-resize;
background: var(--tertiary);
}
}
}