-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
style: Increase the height of the script input box #7396
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -643,15 +643,9 @@ function load18n(label: string) { | |
return i18n.global.t('clean.containerShell'); | ||
case 'curl': | ||
case 'shell': | ||
case 'app': | ||
case 'website': | ||
case 'database': | ||
case 'directory': | ||
case 'log': | ||
case 'cutWebsiteLog': | ||
case 'clean': | ||
case 'snapshot': | ||
case 'ntp': | ||
return i18n.global.t('cronjob.' + label); | ||
case 'container_images': | ||
return i18n.global.t('clean.images'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The provided code snippet contains several improvements and corrections:
Overall, these changes help make the code cleaner and more maintainable while preserving its functionality. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes made to the code snippet aim to increase the height of the component's textarea from its current
margin-top
setting to a specified100%
height. Here are some points to consider:Irregularity/Issue:
There is no actual change in the size of the textarea. Both versions have the same total height (
height: 100px
) and width (width: 100%
). Therefore, this modification does not affect the appearance or functionality of the component.Potential Issues:
Optimization Suggestions:
Although the change isn't altering visual attributes that will affect user interactions, you could maintain clarity by including comments explaining why these properties were changed:
This comment would help other developers understand the specific intention behind increasing the height.