-
Notifications
You must be signed in to change notification settings - Fork 307
fix: [file-upload] Optimize the position of mobile icons #3278
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
Conversation
WalkthroughThis pull request updates the styling of the Changes
Sequence Diagram(s)(No sequence diagram generated as there are no new features or control flow modifications.) Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/vue/src/file-upload/src/mobile-first.vueOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-vue". (The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
WalkthroughThis pull request optimizes the position of mobile icons in the file-upload component. The change involves adjusting the CSS classes to better position the icon on mobile devices. Changes
|
@@ -348,7 +348,7 @@ export default defineComponent({ | |||
<span class="ml-2">{t('ui.fileUpload.uploadFile')}</span> | |||
</div> | |||
</tiny-button> | |||
<icon-plus-circle custom-class="sm:hidden w-5 h-5" /> | |||
<icon-plus-circle custom-class="sm:hidden w-5 h-5 absolute top-0.5 right-5" /> |
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 CSS class for icon-plus-circle
has been updated to include absolute
, top-0.5
, and right-5
for better positioning on mobile devices. Ensure that these changes do not interfere with other elements on different screen sizes.
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/vue/src/file-upload/src/mobile-first.vue (1)
351-351
: Optimize Mobile Icon Positioning: Verify Parent Positioning ContextThe newly added CSS classes (
sm:hidden w-5 h-5 absolute top-0.5 right-5
) on the<icon-plus-circle>
component are intended to adjust its positioning for mobile views. Please ensure that the parent container provides a positioning context (for example, by having arelative
class) so that theabsolute
positioning is scoped correctly. Also, confirm that the use ofsm:hidden
aligns with the design requirements for selectively hiding the icon on larger screens.
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information