refactor: edit style and increase spacing (#5466)

This commit is contained in:
Safouane Aarab 2023-04-29 15:36:21 +00:00 committed by GitHub
parent 2999e71e76
commit ccbb362fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -334,7 +334,7 @@ $pauseresume-size-number: 20;
$pauseresume-size: $pauseresume-size-number * 1px;
$progressbar-border: 1;
$progressbar-height: 14;
$popup-top: 61px; // TODO: ugly that this is hardcoded
$popup-top: 51px; // TODO: ugly that this is hardcoded
.flex {
flex-grow: 1;
@ -715,7 +715,6 @@ $video-image: '../img/film.svg';
#prefs-dialog {
$background-color: var(--color-inspector-background);
background: $background-color;
border: 0;
bottom: 0;
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014,
0 9px 28px 8px #0000000d;
@ -1170,6 +1169,7 @@ $video-image: '../img/film.svg';
.status {
cursor: pointer;
width: 10%;
}
}
@ -1231,7 +1231,6 @@ $video-image: '../img/film.svg';
font-size: 13px;
font-weight: 400;
list-style: none;
margin-right: 10px;
padding: 5px 15px;
&:hover:not(:disabled),

View File

@ -9,7 +9,7 @@ import { setTextContent } from './utils.js';
const TorrentRendererHelper = {
formatDL: (t) => {
return `${Formatter.speedBps(t.getDownloadSpeed())}`;
return ` ${Formatter.speedBps(t.getDownloadSpeed())}`;
},
formatETA: (t) => {
const eta = t.getETA();
@ -25,7 +25,7 @@ const TorrentRendererHelper = {
return '';
},
formatUL: (t) => {
return `${Formatter.speedBps(t.getUploadSpeed())}`;
return ` ${Formatter.speedBps(t.getUploadSpeed())}`;
},
getProgressInfo: (controller, t) => {
const status = t.getStatus();