Skip to content

Commit

Permalink
Merge pull request #3 from gh640/2-fix_exntension_name_overflow
Browse files Browse the repository at this point in the history
2 fix exntension name overflow
  • Loading branch information
gh640 authored Apr 16, 2024
2 parents 77a7491 + cfee78b commit ea7346f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions 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 popup/script.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Item = ({ extension, onClick }) => {
className="extension-image"
/>
) : null}
<span>{name}</span>
<span className="extension-name">{name}</span>
</button>
);
};
Expand Down
6 changes: 6 additions & 0 deletions popup/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ body {
width: 14px;
height: 14px;
}

.extension-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Extension Switch",
"short_name": "Extension Switch",
"description": "Provides a switch to toggle statuses of installed extensions.",
"version": "2.0.0",
"version": "2.0.1",
"icons": {
"19": "images/icon19.png",
"32": "images/icon32.png",
Expand All @@ -29,4 +29,4 @@
"default_title": "Click to switch extensions",
"default_popup": "popup.html"
}
}
}

0 comments on commit ea7346f

Please sign in to comment.