mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: make name and hash readable (#7014)
This commit is contained in:
@@ -1057,9 +1057,7 @@ a {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
grid-area: name;
|
grid-area: name;
|
||||||
overflow: hidden;
|
overflow-wrap: anywhere;
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.inspector-torrent-file-list-entry.skip
|
.inspector-torrent-file-list-entry.skip
|
||||||
@@ -1556,6 +1554,7 @@ dialog {
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-logo {
|
.dialog-logo {
|
||||||
@@ -1685,6 +1684,10 @@ dialog {
|
|||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// UPLOAD DIALOG
|
/// UPLOAD DIALOG
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ export class Inspector extends EventTarget {
|
|||||||
|
|
||||||
append_section_title('Details');
|
append_section_title('Details');
|
||||||
rows = [
|
rows = [
|
||||||
|
['name', 'Name:'],
|
||||||
['size', 'Size:'],
|
['size', 'Size:'],
|
||||||
['location', 'Location:'],
|
['location', 'Location:'],
|
||||||
['hash', 'Hash:'],
|
['hash', 'Hash:'],
|
||||||
@@ -323,7 +324,7 @@ export class Inspector extends EventTarget {
|
|||||||
}
|
}
|
||||||
setTextContent(e.info.availability, fmt.stringSanitizer(string));
|
setTextContent(e.info.availability, fmt.stringSanitizer(string));
|
||||||
|
|
||||||
// downloaded
|
// downloaded
|
||||||
if (torrents.length === 0) {
|
if (torrents.length === 0) {
|
||||||
string = none;
|
string = none;
|
||||||
} else {
|
} else {
|
||||||
@@ -366,7 +367,7 @@ export class Inspector extends EventTarget {
|
|||||||
if (torrents.length === 0) {
|
if (torrents.length === 0) {
|
||||||
string = none;
|
string = none;
|
||||||
} else if (torrents.every((t) => t.isStopped())) {
|
} else if (torrents.every((t) => t.isStopped())) {
|
||||||
string = stateString; // paused || finished}
|
string = stateString;
|
||||||
} else {
|
} else {
|
||||||
const get = (t) => t.getStartDate();
|
const get = (t) => t.getStartDate();
|
||||||
const first = get(torrents[0]);
|
const first = get(torrents[0]);
|
||||||
@@ -421,6 +422,14 @@ export class Inspector extends EventTarget {
|
|||||||
}
|
}
|
||||||
setTextContent(e.info.error, string || none);
|
setTextContent(e.info.error, string || none);
|
||||||
|
|
||||||
|
// torrent name
|
||||||
|
if (torrents.length === 1) {
|
||||||
|
string = torrents[0].getName();
|
||||||
|
} else {
|
||||||
|
string = torrents.length > 0 ? mixed : none;
|
||||||
|
}
|
||||||
|
setTextContent(e.info.name, string);
|
||||||
|
|
||||||
// size
|
// size
|
||||||
if (torrents.length === 0) {
|
if (torrents.length === 0) {
|
||||||
string = none;
|
string = none;
|
||||||
@@ -861,7 +870,6 @@ export class Inspector extends EventTarget {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
command = 'priority-normal';
|
command = 'priority-normal';
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._changeFileCommand(indices, command);
|
this._changeFileCommand(indices, command);
|
||||||
|
|||||||
Reference in New Issue
Block a user