Skip to content

Commit

Permalink
fix(experimental): SwipeActions fix scrolling without actions (#6750)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Feb 12, 2024
1 parent c4c43d1 commit f59d8a6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
</div>

<button
iconLeft="tuiIconEye"
size="m"
tuiIconButton
tuiSwipeAction
></button>
<button
*ngIf="editButton"
iconLeft="tuiIconEdit3"
size="m"
tuiIconButton
Expand All @@ -44,3 +39,11 @@
/>
Share button
</label>
<label>
<input
tuiCheckbox
type="checkbox"
[(ngModel)]="editButton"
/>
Edit button
</label>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ button[tuiSwipeAction] {
label {
display: flex;
align-items: center;
margin-top: 0.5rem;
}

input[type='checkbox'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ import {encapsulation} from '@demo/emulate/encapsulation';
})
export class TuiSwipeActionExample4 {
shareButton = false;
editButton = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
align-items: center;
transform-style: preserve-3d;

&:empty {
display: none;
}

::ng-deep & > * {
.loop(6);
}
Expand Down

0 comments on commit f59d8a6

Please sign in to comment.