-
Notifications
You must be signed in to change notification settings - Fork 67
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: fix the broken select UI of the new storage folder dialog #2280
Conversation
diff --git a/node_modules/@material/mwc-select/mwc-select-base.js b/node_modules/@material/mwc-select/mwc-select-base.js | ||
index 66a2c20..6914121 100644 | ||
index 66a2c20..efcbb8e 100644 | ||
--- a/node_modules/@material/mwc-select/mwc-select-base.js | ||
+++ b/node_modules/@material/mwc-select/mwc-select-base.js | ||
@@ -128,6 +128,14 @@ export class SelectBase extends FormElement { | ||
@@ -128,6 +128,16 @@ export class SelectBase extends FormElement { | ||
const labelledby = !!this.label ? 'label' : undefined; | ||
const describedby = this.shouldRenderHelperText ? 'helper-text' : undefined; | ||
return html ` | ||
+ <style> | ||
+ .mdc-select__anchor { | ||
+ min-width: var(--mdc-select-min-width, 200px); | ||
+ max-width: var(--mwc-select-max-width, 100%); | ||
+ } | ||
+ .mdc-select--filled { | ||
+ min-width: var(--mdc-select-min-width, 200px); | ||
+ max-width: var(--mwc-select-max-width, 100%); | ||
+ } | ||
+ </style> | ||
<div | ||
class="mdc-select ${classMap(classes)}"> | ||
<input | ||
@@ -247,7 +255,7 @@ export class SelectBase extends FormElement { | ||
@@ -247,7 +257,7 @@ export class SelectBase extends FormElement { | ||
if (!this.icon) { | ||
return nothing; | ||
} |
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.
Without this patch file, it works properly with backend-ai-data-view.ts
changes. Is this paths is required? @agatha197
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.
You are right. I reverted it.
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.
LGTM
follows #2268
Before
![image](https://private-user-images.githubusercontent.com/28584164/317625272-d193b291-edde-448e-9dc2-9d5e56d2e983.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwMzI4OTQsIm5iZiI6MTcxODAzMjU5NCwicGF0aCI6Ii8yODU4NDE2NC8zMTc2MjUyNzItZDE5M2IyOTEtZWRkZS00NDhlLTlkYzItOWQ1ZTU2ZDJlOTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEwVDE1MTYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzNDE1ZDlhNzdjY2E5NjViMTljNGEzNDk2YzUxMWVlOTFkYmM1NGRhNWEwMDQ5YTZiMTJkZjA0Yjc4YTYxNzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zheKoq4OWA47nqh1gB28z2o9tHU0J_5VPw9m0S5vCcg)
After
![image](https://private-user-images.githubusercontent.com/28584164/317625539-d331746e-7292-4039-9d06-3fc9f30b339a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgwMzI4OTQsIm5iZiI6MTcxODAzMjU5NCwicGF0aCI6Ii8yODU4NDE2NC8zMTc2MjU1MzktZDMzMTc0NmUtNzI5Mi00MDM5LTlkMDYtM2ZjOWYzMGIzMzlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEwVDE1MTYzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiZDQ4YWYwZWUyZjBlMDQ3YmViNTY5MDBkNmMwNjI4ZTMyYWRjNTU2MDEwNWZjMTFlM2JlYTg2ODE4MWZlZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.geZU2yHUw2lWsSWPdb1pmMni5tpx7DAZARAaZOSbOI4)
Checklist: (if applicable)