Skip to content

Commit

Permalink
merged with staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh Chaturvedi authored and Rishabh Chaturvedi committed Oct 5, 2023
2 parents 7735db1 + 500d686 commit 9458058
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"registry": "https://npm.pkg.github.com"
},
"repository": "git://github.com/contacto-io/contacto-console",
"version": "0.5.39",
"version": "0.5.40",
"main": "build/index.js",
"module": "build/index.es.js",
"files": [
Expand Down
5 changes: 3 additions & 2 deletions src/components/PhoneNumberInput/country-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ const CountryDropdown = ({
circle
size={20}
/>
<Text ellipsis type="caption">
{country[0]} (+{country[2]})
<Text className="sg-country-list-item-label" type="caption">
<span className="sg-country-list-item-label__country-name">{country[0]}</span>
<span className="sg-country-list-item-label__country-code">+{country[2]}</span>
</Text>
</Block>
))
Expand Down
13 changes: 13 additions & 0 deletions src/components/PhoneNumberInput/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
&:hover, &.selected {
background-color: var(--background-highlight-color);
}

.sg-country-list-item-label {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;

&__country-name {
text-overflow: ellipsis;
max-width: 78%;
overflow: auto;
}
}
}
.sg-country-search {
padding: 16px 16px 8px;
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ export * from './components/DatePicker/index'
export * from './components/KeyValueEditor/index'
export * from './components/TopBanner/index'
export * from './components/TimeLeftBar/index'
export * from './components/PhoneNumberInput/index'

0 comments on commit 9458058

Please sign in to comment.