Skip to content

Commit

Permalink
feat: support auto min-height
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 6, 2024
1 parent acf8688 commit 900e4f3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
</div>
</header>

<tui-doc-main></tui-doc-main>
<tui-doc-main />
2 changes: 1 addition & 1 deletion projects/demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import {TuiPreview} from '@taiga-ui/kit';
imports: [
RouterLink,
TuiAddonDoc,
TuiDocHeader,
TuiIcon,
TuiLink,
TuiPreview,
TuiRoot,
TuiDocHeader,
],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
Expand Down
12 changes: 6 additions & 6 deletions projects/demo/src/app/pages/starter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
[floatingToolbar]="floating"
[formControl]="control"
[readOnly]="readOnly"
[style.max-height.px]="maxHeight"
[style.min-height.px]="minHeight"
[style.max-height]="maxHeight"
[style.min-height]="minHeight"
[tools]="tools"
[tuiAutoFocus]="!isE2E"
>
Expand Down Expand Up @@ -87,16 +87,16 @@ <h4>Text:</h4>
</ng-template>
<ng-template
documentationPropertyMode="input"
documentationPropertyName="style.minHeight.px"
documentationPropertyType="number"
documentationPropertyName="style.min-height"
documentationPropertyType="string"
[(documentationPropertyValue)]="minHeight"
>
Value of CSS-property "min-height"
</ng-template>
<ng-template
documentationPropertyMode="input"
documentationPropertyName="style.maxHeight.px"
documentationPropertyType="number"
documentationPropertyName="style.max-height"
documentationPropertyType="string"
[(documentationPropertyValue)]="maxHeight"
>
Value of CSS-property "max-height"
Expand Down
4 changes: 2 additions & 2 deletions projects/demo/src/app/pages/starter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export default class TuiEditorStarter {
`);

protected exampleText = '';
protected minHeight: number | null = null;
protected maxHeight: number | null = null;
protected minHeight = '';
protected maxHeight = '';

protected readonly toolsVariants: ReadonlyArray<
Set<TuiEditorToolType> | readonly TuiEditorToolType[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.ProseMirror {
min-height: 5.375rem;
min-height: 100%;
padding: 0.2rem 1rem;
outline: none;
white-space: pre-wrap;
Expand Down
4 changes: 2 additions & 2 deletions projects/editor/src/components/editor/editor.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@

.t-scrollbar {
display: flex;
border-bottom: 0.3125rem solid transparent;
padding-bottom: 1.3125rem;
min-height: 100%;
padding-bottom: 0.75rem;
box-sizing: border-box;
flex: 1;
}
Expand Down

0 comments on commit 900e4f3

Please sign in to comment.