Some minor updates

canary
WolverinDEV 2020-06-11 14:53:14 +02:00
parent c8bf0a339d
commit 99a8ab9017
3 changed files with 16 additions and 4 deletions

View File

@ -3,6 +3,9 @@
- Fixed channel tree deletions
- Removed layout recalculate bottleneck on connection handler switching
- Fixed empty channel tree on tab change, if the tree has some scroll offset
- Added the ability to duplicate bookmarks
- Fixed issue [#106](https://github.com/TeaSpeak/TeaWeb/issues/106)
- Fixed issue [#90](https://github.com/TeaSpeak/TeaWeb/issues/90)
* **10.06.20**
- Finalize the channel file explorer

View File

@ -463,9 +463,18 @@
padding: .5em;
display: flex;
flex-direction: row;
justify-content: flex-end;
justify-content: flex-start;
.button-duplicate {
margin-right: auto;
}
button {
flex-shrink: 1;
flex-grow: 1;
min-width: 2em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

View File

@ -293,15 +293,15 @@ function handle_icon_upload(file: File, client: ConnectionHandler) : UploadingIc
};
if(!result.startsWith("data:image/svg+xml")) {
if(image.naturalWidth > 32 && image.naturalHeight > 32) {
if(image.naturalWidth > 128 && image.naturalHeight > 128) {
width_error("width and height (max 32px). Given: " + image.naturalWidth + "x" + image.naturalHeight);
return;
}
if(image.naturalWidth > 32) {
if(image.naturalWidth > 128) {
width_error("width (max 32px)");
return;
}
if(image.naturalHeight > 32) {
if(image.naturalHeight > 128) {
width_error("height (max 32px)");
return;
}