Comment server swap #7706

Closed
jessopb wants to merge 9 commits from Comment-server-swap into master
2 changed files with 12 additions and 8 deletions
Showing only changes of commit 1038181386 - Show all commits

View file

@ -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>
);
})}

View file

@ -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 {