Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions openless-all/app/src/lib/capsuleLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ export interface CapsuleMessageLayout {

export function getCapsulePillMetrics(os: OS): CapsulePillMetrics {
if (os === 'win') {
// Windows metrics describe the visible outer footprint of the pill.
// 与 macOS pill 接近以保持视觉密度一致;保留 ~4-5% 余量适配 Windows 字体 metrics。
return { width: 180, height: 44, textWidth: 88, boxSizing: 'border-box' };
// Windows metrics 必须与 src-tauri/src/lib.rs 的原生命中框合同保持一致。
return { width: 196, height: 52, textWidth: 104, boxSizing: 'border-box' };
}

return { width: 176, height: 42, textWidth: 84, boxSizing: 'border-box' };
Expand Down
Loading