@@ -748,54 +748,80 @@ openclaw-workboard-mini-widget {
748748 grid-template-rows : minmax ( 0 , 1fr ) ;
749749 }
750750
751+ /* Chrome is a compact top-left pill, not a full-width strip: widgets put
752+ their own actions top-right, so that corner must stay visible and
753+ clickable even while host chrome is revealed. The 30px pill height is
754+ overlay-only; coarse pointers keep the base 38px in-flow grid row that
755+ BOARD_WIDGET_TOUCH_BAR_PX mirrors. */
751756 . board-widget__bar {
752757 backdrop-filter : blur ( 6px ) ;
753758 background : color-mix ( in srgb, var ( --board-surface ) 92% , transparent) ;
754- border-radius : 11px 11px 0 0 ;
755- height : 38px ;
756- left : 0 ;
759+ border : 1px solid var ( --board-line ) ;
760+ border-radius : 999px ;
761+ box-shadow : 0 4px 14px rgb ( 0 0 0 / 18% ) ;
762+ height : 30px ;
763+ left : 7px ;
764+ /* Reserve a widget-owned top-right action region: the interactive pill may
765+ never stretch across the card, or it re-intercepts the exact corner this
766+ chrome exists to keep clickable. The 88px floor keeps the drag handle and
767+ menu usable on very narrow widgets, trading reservation width there. */
768+ max-width : max ( 88px , calc ( 100% - 96px ) ) ;
757769 opacity : 0 ;
770+ padding : 0 5px ;
758771 position : absolute;
759- right : 0 ;
760- top : 0 ;
772+ top : 7px ;
761773 transition :
762- opacity 120 ms ease,
763- visibility 0s linear 120 ms ;
774+ opacity 100 ms ease,
775+ visibility 0s linear 100 ms ;
764776 visibility : hidden;
765777 z-index : 5 ;
766- /* The overlay strip must not steal clicks from widget content underneath:
767- only real controls stay interactive, everything else passes through. */
768- pointer-events : none;
769778 }
770779
771- /* Capabilities chip stays interactive for its granted-permissions tooltip;
772- the kind badge and title are display-only and pass clicks through. */
780+ . board-widget__bar > . board-widget__title {
781+ max-width : 200px ;
782+ }
783+
784+ /* Every flexible child must shrink inside the capped pill; content that
785+ overflowed the box would carry pointer events into the reserved corner. */
773786 . board-widget__bar > . board-widget__drag-handle ,
774- . board-widget__bar > . board-widget__capabilities ,
775787 . board-widget__bar > . board-widget__menu {
776- pointer-events : auto;
788+ flex-shrink : 0 ;
789+ }
790+
791+ . board-widget__bar > . board-widget__kind ,
792+ . board-widget__bar > . board-widget__capabilities {
793+ min-width : 0 ;
794+ overflow : hidden;
777795 }
778796
779797 . board-widget__resize-handle {
780798 opacity : 0 ;
781799 transition :
782- opacity 120 ms ease,
783- visibility 0s linear 120 ms ;
800+ opacity 100 ms ease,
801+ visibility 0s linear 100 ms ;
784802 visibility : hidden;
785803 }
786804
805+ /* Hover-intent: the pointer must rest on the card briefly before chrome
806+ appears, so quick clicks into widget content never race the overlay.
807+ Delay-only overrides keep the base fade, and reduced-motion's
808+ transition: none stays authoritative because no transition-property is
809+ redeclared here. */
787810 . board-widget : hover . board-widget__bar ,
788- . board-widget : hover . board-widget__resize-handle ,
811+ . board-widget : hover . board-widget__resize-handle {
812+ opacity : 1 ;
813+ transition-delay : 350ms ;
814+ visibility : visible;
815+ }
816+
817+ /* Keyboard focus, an open menu, and active drags need chrome immediately. */
789818 . board-widget : focus-within . board-widget__bar ,
790819 . board-widget : focus-within . board-widget__resize-handle ,
791820 . board-widget--dragging . board-widget__bar ,
792821 . board-widget--dragging . board-widget__resize-handle ,
793822 . board-widget : has ( . board-widget__menu [open ]) . board-widget__bar ,
794823 . board-widget : has ( . board-widget__menu [open ]) . board-widget__resize-handle {
795824 opacity : 1 ;
796- /* Delay-only override: reveal flips visibility immediately while the base
797- shorthand keeps the fade, and reduced-motion's transition: none stays
798- authoritative because no transition-property is redeclared here. */
799825 transition-delay : 0s ;
800826 visibility : visible;
801827 }
0 commit comments