-
Notifications
You must be signed in to change notification settings - Fork 330
fix(file-upload): [file-upload] Adjust the style of the mobile-first button for uploading components #2918
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
fix(file-upload): [file-upload] Adjust the style of the mobile-first button for uploading components #2918
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 |
|---|---|---|
|
|
@@ -112,7 +112,7 @@ export default defineComponent({ | |
| data-tag="tiny-upload" | ||
| class={[ | ||
| !displayOnly && listType === 'text' | ||
| ? `flex justify-between mt-4 mb-2 ${isBubbleMode ? 'sm:my-0' : !isShowTitle ? 'sm:mt-0' : 'sm:my-3'}` | ||
| ? `flex mt-4 mb-2 ${isBubbleMode ? 'sm:my-0' : !isShowTitle ? 'sm:mt-0' : 'sm:my-3'}` | ||
|
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. Verify that removing |
||
| : 'h-full', | ||
| showFileList ? 'sm:mb-3' : 'sm:mb-0' | ||
| ]}> | ||
|
|
@@ -123,14 +123,14 @@ export default defineComponent({ | |
| {state.currentBreakpoint !== 'default' && | ||
| !displayOnly && | ||
| (promptTip && tipMessage ? ( | ||
| <div class="hidden sm:inline-flex sm:items-center w-full"> | ||
| <div class="hidden sm:inline-flex sm:items-center"> | ||
|
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. Check that removing |
||
| {uploadTrigger()} | ||
| <tiny-tooltip effect="light" content={tipMessage} placement="right" popper-options={popperConfig}> | ||
| <tiny-icon-help-circle custom-class="ml-2 cursor-pointer fill-color-icon-tertiary"></tiny-icon-help-circle> | ||
| </tiny-tooltip> | ||
| </div> | ||
| ) : listType === 'text' ? ( | ||
| <div class="hidden sm:inline-flex sm:items-center w-full"> | ||
| <div class="hidden sm:inline-flex sm:items-center"> | ||
| {uploadTrigger()} | ||
| <div | ||
| title={typeof tipMessage === 'string' ? tipMessage : ''} | ||
|
|
||
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.
Ensure that removing the
ml-2class does not affect the button's alignment or spacing in unintended ways across different screen sizes.