Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 20 additions & 6 deletions
26
plugins/chat/assets/stylesheets/common/chat-side-panel-resizer.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
.chat-side-panel-resizer { | ||
top: 0; | ||
bottom: 0; | ||
left: -3px; | ||
width: 5px; | ||
|
||
position: absolute; | ||
z-index: calc(z("header") - 1); | ||
transition: background-color 0.15s 0.15s; | ||
background-color: transparent; | ||
|
||
&:hover, | ||
&:active { | ||
cursor: col-resize; | ||
background: var(--tertiary); | ||
.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); | ||
} | ||
} | ||
} |