Fix maximized markdown textarea

This commit is contained in:
Chocobozzz 2024-12-19 10:43:38 +01:00
parent 72e21e842f
commit c6302ed54b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<textarea #textarea
[(ngModel)]="content" (ngModelChange)="onModelChange()"
class="form-control" [ngClass]="{ 'input-error': formError }"
[ngClass]="{ 'input-error': formError }"
[attr.disabled]="disabled || null"
[id]="inputId" [name]="inputId" [dir]="dir">
</textarea>

View File

@ -82,7 +82,6 @@ $input-border-radius: 3px;
z-index: #{z(root-header) - 1};
position: fixed;
top: pvar(--header-height);
left: $menu-width;
max-height: none !important;
max-width: none !important;
@ -95,6 +94,8 @@ $input-border-radius: 3px;
background-color: pvar(--bg);
@include left($menu-width);
.nav-preview {
grid-row: 1;
grid-column: 1 / 3;
@ -113,6 +114,9 @@ $input-border-radius: 3px;
border-right: 1px dashed pvar(--input-border-color);
resize: none;
// Prevent "outline" overflow with left menu
box-shadow: none !important;
}
::ng-deep .tab-content {
@ -163,7 +167,8 @@ $input-border-radius: 3px;
:host-context(.main-col.expanded) {
.root.maximized {
left: 0;
width: 100%;
width: calc(100% - #{$menu-collapsed-width});
@include left($menu-collapsed-width);
}
}