Skip to content

Commit

Permalink
chore(demo): fix SwipeActions examples (#6664)
Browse files Browse the repository at this point in the history
Co-authored-by: taiga-family-bot <[email protected]>
  • Loading branch information
vladimirpotekhin and taiga-family-bot authored Feb 5, 2024
1 parent bdd144d commit 020033b
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 75 deletions.
4 changes: 1 addition & 3 deletions projects/core/styles/mixins/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@

&::-webkit-scrollbar,
&::-webkit-scrollbar-thumb {
background: transparent;
width: 0;
height: 0;
display: none;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ <h3 class="heading">Gas</h3>
</div>

<div
tuiCardLarge="compact"
tuiSurface="elevated"
class="reviews"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.blur {
background-image: url(/assets/images/restaurant-2.jpg);
border-radius: 0;
padding: 1.25rem;
clip-path: inset(0 round 5rem); // for crisp edges of blurred background

&:before {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TuiAvatarModule,
TuiBadgeModule,
TuiButtonModule,
TuiCardModule,
TuiSurfaceModule,
} from '@taiga-ui/experimental';

Expand All @@ -41,6 +42,7 @@ import {ExampleTuiSurfaceComponent} from './surface.component';
TuiScrollbarModule,
TuiButtonModule,
TuiLinkModule,
TuiCardModule,
TuiAvatarModule,
TuiLabelModule,
TuiModeModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<tui-swipe-actions>
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
</div>

Expand All @@ -34,16 +36,18 @@
</tui-swipe-actions>

<tui-swipe-actions>
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconGift"
></tui-avatar>
<div tuiTitle>
<strong>{{ 23000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Goal</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconGift"
></tui-avatar>
<div tuiTitle>
<strong>{{ 23000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Goal</div>
</div>
</div>

Expand All @@ -59,16 +63,18 @@
[style.--tui-action-gap]="16"
[style.--tui-item-size]="32"
>
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconBriefcase"
></tui-avatar>
<div tuiTitle>
<strong>{{ 5000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Vacations</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconBriefcase"
></tui-avatar>
<div tuiTitle>
<strong>{{ 5000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Vacations</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.blur {
background-image: url('/assets/images/restaurant-2.jpg');
border-radius: 1rem;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<tui-swipe-actions [autoClose]="true">
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
</div>

Expand All @@ -34,16 +36,18 @@
</tui-swipe-actions>

<tui-swipe-actions [autoClose]="true">
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconGift"
></tui-avatar>
<div tuiTitle>
<strong>{{ 23000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Goal</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconGift"
></tui-avatar>
<div tuiTitle>
<strong>{{ 23000 | tuiAmount: 'EUR' | async }}</strong>
<div tuiSubtitle>Goal</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<tui-swipe-actions>
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<tui-swipe-actions>
<div tuiSurface="elevated">
<div tuiCell>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
<div
tuiCardLarge
tuiCell
tuiSurface="elevated"
>
<tui-avatar
appearance="primary"
src="tuiIconDollarSignLarge"
></tui-avatar>
<div tuiTitle>
<strong>{{ 10000 | tuiAmount: 'USD' | async }}</strong>
<div tuiSubtitle>Dollar account</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TuiBadgedContentModule,
TuiBadgeModule,
TuiButtonModule,
TuiCardModule,
TuiCellModule,
TuiCheckboxModule,
TuiIconModule,
Expand All @@ -36,6 +37,7 @@ import {ExampleTuiSwipeActionsComponent} from './swipe-actions.component';
TuiAddonDocModule,
TuiAvatarModule,
TuiCellModule,
TuiCardModule,
TuiSurfaceModule,
TuiSwipeActionsModule,
TuiAmountPipeModule,
Expand Down
2 changes: 0 additions & 2 deletions projects/kit/components/carousel/carousel.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
display: flex;
overflow: auto;
overscroll-behavior-x: none;
padding-bottom: 2rem;
margin-bottom: -2rem;

&:before,
&:after {
Expand Down

0 comments on commit 020033b

Please sign in to comment.