Hide a live widget's label so it can't peek out beside the native view
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ScMbiX5uANzSZVWSQdXdtQ
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -61,7 +61,10 @@ body { margin: 0; min-height: 100vh; color: #fff; -webkit-tap-highlight-color: t
|
|||||||
.widget-slot { grid-column: 1 / -1; display: grid; place-items: center; box-sizing: border-box;
|
.widget-slot { grid-column: 1 / -1; display: grid; place-items: center; box-sizing: border-box;
|
||||||
border-radius: 1.25rem; background: rgb(255 255 255 / .1);
|
border-radius: 1.25rem; background: rgb(255 255 255 / .1);
|
||||||
border: 1px dashed rgb(255 255 255 / .3); }
|
border: 1px dashed rgb(255 255 255 / .3); }
|
||||||
.widget-label { font-size: .875rem; opacity: .75; text-shadow: var(--shadow-text); }
|
.widget-label { font-size: .875rem; opacity: .75; text-shadow: var(--shadow-text);
|
||||||
|
max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||||||
|
/* The native view can be narrower than the slot, so the label would peek out at its sides. */
|
||||||
|
.widget-slot[data-wid] .widget-label { visibility: hidden; }
|
||||||
/* A live widget sits bare on the wallpaper; the frame only comes back while it is picked
|
/* A live widget sits bare on the wallpaper; the frame only comes back while it is picked
|
||||||
up or resized (or while its native view is away, e.g. another widget is being resized). */
|
up or resized (or while its native view is away, e.g. another widget is being resized). */
|
||||||
.widget-slot[data-wid]:not(.lifted):not(.resizing) { background: none; border-color: transparent; }
|
.widget-slot[data-wid]:not(.lifted):not(.resizing) { background: none; border-color: transparent; }
|
||||||
|
|||||||
Reference in new issue
Block a user