Skip to content

Commit

Permalink
change using overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronEricPerez committed Oct 10, 2022
1 parent d2e147f commit 1038181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 1 addition & 6 deletions ui/component/commentsList/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,9 @@ const CommentActionButtons = (actionButtonsProps: ActionButtonsProps) => {
value={commentServer}
>
{allServers.map(function (server) {
let name = server.name;
if (name.length > 10) {
name = name.substring(0, 10);
name = name + '...';
}
return (
<option key={server.url} value={server.url}>
{name}
{server.name}
</option>
);
})}
Expand Down
13 changes: 11 additions & 2 deletions ui/scss/component/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,17 @@
.button_selectedServer {
display: inline;
float: right;
min-width: var(--input-select-server-min-width);
max-width: var(--input-select-server-max-width);
select {
width: 12rem;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
@media (max-width: $breakpoint-small) {
select {
width: 8rem;
}
}
}

.button_refresh {
Expand Down

0 comments on commit 1038181

Please sign in to comment.