Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1626] fix comment field resizing #1636

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

Smol-An
Copy link
Contributor

@Smol-An Smol-An commented Jun 12, 2024

Pull request details

A change has been made to the comment form component so that the field can be expanded vertically.

Issues fixed

issue #1626

@@ -9,7 +9,7 @@
{{ html()->hidden('commentable_type')->value(get_class($model)) }}
{{ html()->hidden('commentable_id')->value($model->id) }}
<div class="form-floating">
{{ html()->textarea('content')->class('form-control h-100')->required() }}
{{ html()->textarea('content')->class('form-control')->attribute('style', 'height: 100%')->required() }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Smol-An мы стараемся не использовать inline атрибуты стилей.
Посмотрите, пожалуйста, есть ли в bootstrap похожий css-класс, чтобы им воспользоваться. Если нет, то можно использовать SCSS и создать кастомный класс (в ридми посмотрите, вроде был про это пункт, как именовать такие кастомные клкссы)

@fey fey merged commit 05c29b7 into Hexlet:main Jun 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants