Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

two-line display labels: name + resolution

Khiem Nguyend4ed56b31076
diff --git a/drag_debug.txt b/drag_debug.txt
index 2480864..9530099 100644
--- a/drag_debug.txt
+++ b/drag_debug.txt
@@ -3481,3 +3481,9 @@
[2026-07-16T07:45:45.606Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
[2026-07-16T07:45:45.606Z] createFileStackDragIcon calling Resvg for count=1
[2026-07-16T07:45:46.216Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-16T07:59:01.036Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-16T07:59:01.814Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-16T07:59:01.815Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-16T07:59:02.458Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-16T07:59:02.459Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-16T07:59:03.131Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index 4091dc4..bfd405a 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -459,14 +459,17 @@ export function registerIpc(): void {
const all = screen.getAllDisplays()
const primary = screen.getPrimaryDisplay()
return all.map((d) => {
- const name = (d as any).label || (d.id === primary.id ? 'Primary' : `Display #${d.id}`)
+ const rawName = (d as any).label || ''
+ const name = rawName || (d.id === primary.id ? 'Primary' : `Display #${d.id}`)
return {
id: d.id,
bounds: { x: d.bounds.x, y: d.bounds.y, width: d.bounds.width, height: d.bounds.height },
isPrimary: d.id === primary.id,
label: d.id === primary.id
? `${name} (Primary) ${d.bounds.width}×${d.bounds.height}`
- : `${name} ${d.bounds.width}×${d.bounds.height}`
+ : `${name} ${d.bounds.width}×${d.bounds.height}`,
+ name: d.id === primary.id ? `${name} (Primary)` : name,
+ resolution: `${d.bounds.width}×${d.bounds.height}`
}
})
})
diff --git a/shared/types.ts b/shared/types.ts
index 93dad60..c3cc44f 100644
--- a/shared/types.ts
+++ b/shared/types.ts
@@ -68,6 +68,8 @@ export interface DisplayInfo {
bounds: { x: number; y: number; width: number; height: number }
isPrimary: boolean
label: string
+ name: string
+ resolution: string
}
/**
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 7ae595e..e7beb74 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -211,10 +211,11 @@ export function Settings() {
{displays.map((d) => (
<button
key={d.id}
- className={`pill ${settings.stickDisplayId === d.id ? 'active' : ''}`}
+ className={`pill display-pill ${settings.stickDisplayId === d.id ? 'active' : ''}`}
onClick={() => patch({ stickDisplayId: d.id })}
>
- {d.label}
+ <div className="pill-name">{d.name}</div>
+ <div className="pill-res">{d.resolution}</div>
</button>
))}
</div>
diff --git a/src/styles/settings.css b/src/styles/settings.css
index f4d311c..6f83658 100644
--- a/src/styles/settings.css
+++ b/src/styles/settings.css
@@ -93,6 +93,23 @@
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
+.display-pill {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
+ padding: 6px 0;
+ line-height: 1.2;
+}
+.display-pill .pill-name {
+ font-size: 12px;
+ font-weight: 600;
+}
+.display-pill .pill-res {
+ font-size: 10px;
+ opacity: 0.7;
+}
+
/* Sleek Minimalist Toggle Switch */
.setting-toggle {
flex-shrink: 0;