Skip to content

Commit

Permalink
Fix color name for progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Dec 17, 2023
1 parent 1bebc10 commit a60738f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/librqbit/webui/dist/assets/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/librqbit/webui/dist/assets/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions crates/librqbit/webui/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"src": "assets/logo.svg"
},
"index.css": {
"file": "assets/index-87c84a72.css",
"file": "assets/index-d46108e9.css",
"src": "index.css"
},
"index.html": {
"css": [
"assets/index-87c84a72.css"
"assets/index-d46108e9.css"
],
"file": "assets/index-5a52a5c4.js",
"file": "assets/index-c93d50ee.js",
"isEntry": true,
"src": "index.html"
}
Expand Down
4 changes: 2 additions & 2 deletions crates/librqbit/webui/src/components/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ProgressBar = ({ now, variant, label }: Props) => {
const progressLabel = label ?? `${now.toFixed(2)}%`;

const variantClassName = {
warn: "bg-yellow-500",
warn: "bg-amber-500",
info: "bg-blue-500 text-white",
success: "bg-green-700 text-white",
error: "bg-red-500 text-white",
Expand All @@ -17,7 +17,7 @@ export const ProgressBar = ({ now, variant, label }: Props) => {
return (
<div className={"w-full bg-gray-200 rounded-full dark:bg-gray-500"}>
<div
className={`text-xs bg-blue-500 font-medium transition-all text-center p-0.5 leading-none rounded-full ${variantClassName}`}
className={`text-xs bg-blue-500 text-white font-medium transition-all text-center p-0.5 leading-none rounded-full ${variantClassName}`}
style={{ width: `${now}%` }}
>
{progressLabel}
Expand Down
2 changes: 0 additions & 2 deletions desktop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>rqbit web 4.0.0-beta.0</title>
<link rel="icon" type="image/svg+xml" href="assets/logo.svg" />
<!-- Include Bootstrap CSS -->
<!-- <link rel="stylesheet" href="/src/styles/bootstrap.min.css" /> -->
</head>

<body>
Expand Down
6 changes: 0 additions & 6 deletions desktop/src/styles/bootstrap.min.css

This file was deleted.

0 comments on commit a60738f

Please sign in to comment.