Skip to content

Commit

Permalink
fix(kit): InputFiles fix description padding (#4529)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored May 25, 2023
1 parent 5db464b commit 5b9544d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion projects/kit/components/input-files/input-files.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ tui-input-files {
}

.t-description {
.fullsize();
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 1rem 0;
box-sizing: border-box;
}
}

Expand Down
5 changes: 2 additions & 3 deletions projects/kit/components/input-files/input-files.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
>
<div class="t-description">
<ng-container *ngTemplateOutlet="template || null; context: {$implicit: fileDragged}"></ng-container>
<ng-container *ngIf="!template">
<div *ngIf="!template">
<a tuiLink>
<ng-container *polymorpheusOutlet="computedLink$ | async as text">
{{ text }}
</ng-container>
</a>
&nbsp;
<span
*polymorpheusOutlet="computedLabel$ | async as text"
[textContent]="text"
></span>
</ng-container>
</div>
</div>
<ng-container *ngIf="!readOnly && !computedDisabled">
<ng-content select="input"></ng-content>
Expand Down

0 comments on commit 5b9544d

Please sign in to comment.