Skip to content

Commit

Permalink
Merge pull request #468 from awcodes/fix/source-code-height
Browse files Browse the repository at this point in the history
Fix: source code modal height
  • Loading branch information
awcodes authored Sep 21, 2024
2 parents 79f796e + 0bd5bc1 commit fa41a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/css/plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
height: 100%;
grid-template-rows: auto 1fr;

textarea {
.source_code_editor * {
height: 100% !important;
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/Actions/SourceAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ protected function setUp(): void
->form([
TextArea::make('source')
->label(trans('filament-tiptap-editor::source-modal.labels.source'))
->extraAttributes(['class' => 'source_code_editor'])
->autosize(),
->extraAttributes(['class' => 'source_code_editor']),
])
->modalWidth('screen')
->action(function (TiptapEditor $component, $data) {
Expand Down

0 comments on commit fa41a5f

Please sign in to comment.