fix filename overflowing page

pull/173/head
Aevann 2023-07-22 14:18:29 +03:00
parent 379836cad2
commit 59efc521ff
2 changed files with 6 additions and 2 deletions

View File

@ -7003,7 +7003,7 @@ div.markdown {
max-width: 500px;
margin-top: 5px;
}
.btn {
.btn:not(.format) {
overflow: hidden;
}
@ -7582,3 +7582,7 @@ bdi {
.active:not(.voting-arrow) {
pointer-events: none;
}
label.btn.btn-secondary > span {
word-break: break-word;
}

View File

@ -498,7 +498,7 @@ function handle_files(input, newfiles) {
for (const file of newfiles) {
oldfiles[ta.id].push(file)
if (span.innerHTML != ' ') span.innerHTML += ', '
span.innerHTML += file.name.substr(0, 30);
span.innerHTML += file.name.substr(0, 25);
if (location.pathname != '/chat' && location.pathname != '/old_chat')
insertText(ta, `[${file.name}]`);
}