Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Improve right panel resize handle usability (#7204)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Nov 29, 2021
1 parent d939e45 commit f5d3234
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions res/css/structures/_MainSplit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ limitations under the License.
margin-left: 8px;
height: calc(100vh - 51px); // height of .mx_RoomHeader.light-panel

&:hover .mx_RightPanel_ResizeHandle {
// Need to use important to override element style attributes
// set by re-resizable
top: 50% !important;
&:hover .mx_ResizeHandle_horizontal::before {
position: absolute;
top: 50%;
transform: translate(0, -50%);

height: 64px !important; // to match width of the ones on roomlist
width: 4px !important;
border-radius: 4px !important;
height: 64px; // to match width of the ones on roomlist
width: 4px;
border-radius: 4px;

content: '';

background-color: $primary-content;
opacity: 0.8;
Expand Down
2 changes: 1 addition & 1 deletion src/components/structures/MainSplit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class MainSplit extends React.Component<IProps> {
onResize={this.onResize}
onResizeStop={this.onResizeStop}
className="mx_RightPanel_ResizeWrapper"
handleClasses={{ left: "mx_RightPanel_ResizeHandle" }}
handleClasses={{ left: "mx_ResizeHandle_horizontal" }}
>
{ panelView }
</Resizable>;
Expand Down

0 comments on commit f5d3234

Please sign in to comment.