Skip to content

Commit

Permalink
change the text-overflow behavior for custom dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeiown committed May 29, 2024
1 parent 1dd56a5 commit e4eec70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ export function addStyles() {
width: 200px;
max-height: 260px;
overflow-y: auto;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
border: none;
border-radius: 5px;
background-color: rgba(245, 245, 245);
Expand All @@ -73,6 +70,9 @@ export function addStyles() {
}
.custom-dropdown-item {
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
padding: 10px;
cursor: pointer;
Expand Down
6 changes: 3 additions & 3 deletions json/companies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"lat": 50.45090527867344,
"lng": 30.521412882155204,
"company": "Geek Code",
"company": "Geek Code company of the future",
"address": "Somewhere in Ukraine",
"info": "Tech solutions for the future",
"marker": "blue"
Expand All @@ -26,7 +26,7 @@
{
"lat": 49.58879379529434,
"lng": 34.553311010136014,
"company": "Cyber Nauts",
"company": "Desperate cyberneticists of our time",
"address": "Somewhere in Ukraine",
"info": "Navigating the digital world",
"marker": "pink"
Expand All @@ -42,7 +42,7 @@
{
"lat": 49.4186548962826,
"lng": 26.97717159437349,
"company": "Inno Hub",
"company": "Creative hub of innovation",
"address": "Somewhere in Ukraine",
"info": "Fueling creativity in IT",
"marker": "green"
Expand Down

0 comments on commit e4eec70

Please sign in to comment.