Skip to content

Commit a1c8e59

Browse files
committed
update a little bit
1 parent 7a9376a commit a1c8e59

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

samples/deepseek-r1-webgpu/src/App.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function App() {
270270
</div>
271271
<div
272272
id="ProgressBar"
273-
class="absolute top-0 rounded-lg z-10 text-right bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500"
273+
class="absolute top-0 rounded-lg z-10 text-left bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-sm font-mono"
274274
></div>
275275
`;
276276

@@ -284,7 +284,7 @@ function App() {
284284
statusText.textContent = `模型文件上传中 ...`;
285285

286286
if (!progressEle.style.height) {
287-
progressEle.style.height = "30px";
287+
progressEle.style.height = "24px";
288288
}
289289
progressEle.style.width = `${progress}%`;
290290
progressValEle.textContent = `${formatBytes(
@@ -578,7 +578,7 @@ function App() {
578578
</div>
579579
</div>
580580
</div>
581-
<div className="flex items-center flex-col relative justify-start 2xl:basis-3/8 basis-1/4">
581+
<div className="flex items-center flex-col relative justify-center 2xl:basis-3/8 basis-1/4">
582582
<div className="flex flex-col items-center px-4">
583583
<p className="max-w-[514px] text-sm 2xl:text-base">
584584
<br />
@@ -618,7 +618,7 @@ function App() {
618618
<div></div>
619619
</div>
620620
{status === null && dialogMessages.length === 0 && (
621-
<div className="flex items-center flex-col relative justify-start basis-1/4">
621+
<div className="flex items-center flex-col relative justify-center basis-1/4">
622622
<div className="w-full flex justify-center items-center">
623623
<div className="relative flex flex-row items-center">
624624
<button
@@ -665,7 +665,7 @@ function App() {
665665

666666
<div
667667
id="progressBar"
668-
className="relative hidden rounded-lg w-[514px] min-h-[30px] bg-stone-200/40 flex items-center justify-between font-mono mt-4"
668+
className="relative hidden rounded-lg w-[500px] min-h-[24px] bg-stone-200/40 flex items-center justify-between font-mono mt-4"
669669
></div>
670670
</div>
671671
)}
@@ -690,7 +690,7 @@ function App() {
690690
{status === "ready" && (
691691
<div
692692
ref={chatContainerRef}
693-
className="overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full basis-2/4 2xl:basis-1/4 justify-start"
693+
className="overflow-y-auto scrollbar-thin w-full flex flex-col items-center h-full basis-2/4 2xl:basis-1/4 justify-center"
694694
>
695695
<Chat messages={[...historyMessages, ...dialogMessages]} />
696696
{historyMessages.length === 0 && dialogMessages.length === 0 && (

samples/deepseek-r1-webgpu/src/components/Progress.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function formatBytes(size) {
99
export default function Progress({ text, percentage, total }) {
1010
percentage ??= 0;
1111
return (
12-
<div className="w-full bg-stone-200/40 text-left rounded-lg overflow-hidden mb-0.5">
12+
<div className="w-[500px] min-h-[24px] w-full bg-stone-200/40 text-left rounded-lg overflow-hidden mb-0.5">
1313
<div
14-
className="bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 whitespace-nowrap px-1 text-sm font-mono"
14+
className="h-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 whitespace-nowrap px-1 text-sm font-mono"
1515
style={{ width: `${percentage}%` }}
1616
>
1717
{text} ({percentage.toFixed(2)}%

0 commit comments

Comments
 (0)