Skip to content

Commit

Permalink
add screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
fun committed Feb 22, 2024
1 parent 88af993 commit accd472
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# PhotoMint 图片压缩桌面软件

特色
### 特色
1. 简单,高效果
2. 拖拽批量处理
3. 自动覆盖保存

基于tauri 2.0 和 squoosh

### 软件截图

<img src="screenshot/photo-mint.webp" width="480px" />
File renamed without changes
Binary file added screenshot/photo-mint.webp
Binary file not shown.
7 changes: 5 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ function App() {
return (
<div className="flex bg-white bg-opacity-50">
<div
className="absolute top-0 z-20 h-7 w-full bg-white shadow-sm"
className=" absolute top-0 z-20 flex h-7 w-full items-center justify-center bg-white text-sm font-black shadow-sm"
data-tauri-drag-region
/>
>
<img src="/logo.png" className="h-6 w-6" />
Photo Mint
</div>

<div className="h-screen grow overflow-hidden pt-8 opacity-90">
<div className="m-2 ">
Expand Down
10 changes: 7 additions & 3 deletions src/components/app/tasks-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@ export default function TasksPanel(props) {
</div>
<div className="mx-1 flex-1 text-sm">
<div>{file.name}</div>
<div>
<span>原大小{formatFileSize(file.osize)}</span>
<div className="text-xs font-black">
<span>原始大小{formatFileSize(file.osize)}</span>
<span className="ml-4">处理后{formatFileSize(file.nsize)}</span>
</div>
</div>
<div className="flex items-center">
<div></div>
{file.nsize && (
<div className="font-black text-green-700">
-{Math.round(((file.osize - file.nsize) / file.osize) * 100)} %
</div>
)}
{/* <TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
Expand Down

0 comments on commit accd472

Please sign in to comment.