Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scss/partials/ai-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

:first-child[id^="tiny_ai_"] {
display: flex;
flex-grow: 1;
padding: 8px 24px 0px 24px;
flex-direction: column;

Expand Down
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
}
.tiny_ai-modal--dialog [data-region=body] :first-child[id^=tiny_ai_] {
display: flex;
flex-grow: 1;
padding: 8px 24px 0px 24px;
flex-direction: column;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/components/moodle-modal-body-optimize.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Context variables required for this template:
Example context (json):
{}
}}
<div id="tiny_ai_optimize_{{uniqid}}" data-tiny_instance_uniqid={{tinyinstanceuniqid}}>
<div id="tiny_ai_optimize_{{uniqid}}" data-tiny_instance_uniqid={{tinyinstanceuniqid}} class="flex-grow-1">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That fixes the issue. However, to keep consistency, I think it's better to put flex-grow: 1; to the other flex rules we have in ai-modal.scss in the section :first-child[id^="tiny_ai_"] {

{{> tiny_ai/components/ai-textarea }}
</div>
{{#js}}
Expand Down
Loading