-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(splitter): disabled splitter has the wrong cursor style #UIM-48
- Loading branch information
1 parent
e5e1972
commit a1a4b39
Showing
6 changed files
with
72 additions
and
103 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
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
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
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,12 +1,14 @@ | ||
<ng-content></ng-content> | ||
|
||
<ng-template ngFor let-area [ngForOf]="areas" let-index="index" let-last="last"> | ||
<mc-gutter *ngIf="last === false" | ||
[class.mc-gutter_horizontal]="!isVertical" | ||
[direction]="direction" | ||
[disabled]="disabled" | ||
[attr.disabled]="disabled || null" | ||
[size]="gutterSize" | ||
[order]="index * 2 + 1" | ||
(mousedown)="onMouseDown($event, index, index + 1)" | ||
> | ||
<i mc-icon="mc-ellipsis_16" color="second" [class.icon-vertical]="direction === 'vertical'" *ngIf="!disabled"></i> | ||
(mousedown)="onMouseDown($event, index, index + 1)"> | ||
|
||
<i mc-icon="mc-ellipsis_16" color="second" *ngIf="!disabled"></i> | ||
</mc-gutter> | ||
</ng-template> |
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
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,23 +1,28 @@ | ||
mc-splitter { | ||
.mc-splitter { | ||
display: flex; | ||
|
||
flex-wrap: nowrap; | ||
align-items: stretch; | ||
overflow: hidden; | ||
} | ||
|
||
mc-splitter-area { | ||
overflow: hidden; | ||
|
||
.mc-splitter-area { | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
mc-gutter { | ||
.mc-gutter { | ||
display: flex; | ||
|
||
flex-grow: 0; | ||
flex-shrink: 0; | ||
overflow: hidden; | ||
|
||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.icon-vertical { | ||
transform: rotate(90deg); | ||
overflow: hidden; | ||
|
||
&.mc-gutter_horizontal > .mc-icon { | ||
transform: rotate(90deg); | ||
} | ||
} |