@@ -12,7 +12,7 @@ import {
1212 useState ,
1313} from "react" ;
1414import type { SileoButton , SileoState , SileoStyles } from "./types" ;
15- import "./sileo .css" ;
15+ import "./styles .css" ;
1616import {
1717 ArrowRight ,
1818 Check ,
@@ -368,6 +368,7 @@ export const Sileo = memo(function Sileo({
368368 const svgHeight = hasDesc ? Math . max ( expanded , minExpanded ) : HEIGHT ;
369369 const expandedContent = Math . max ( 0 , expanded - HEIGHT ) ;
370370 const resolvedPillWidth = Math . max ( pillWidth || HEIGHT , HEIGHT ) ;
371+ const pillHeight = HEIGHT + blur * 3 ;
371372
372373 const pillX =
373374 position === "right"
@@ -383,13 +384,13 @@ export const Sileo = memo(function Sileo({
383384 "--_h" : `${ open ? expanded : HEIGHT } px` ,
384385 "--_pw" : `${ resolvedPillWidth } px` ,
385386 "--_px" : `${ pillX } px` ,
386- "--_sy" : `${ open ? 1 : HEIGHT / expanded } ` ,
387- "--_ph" : `${ open ? expanded - 5 : expanded } px` ,
387+ "--_sy" : `${ open ? 1 : HEIGHT / pillHeight } ` ,
388+ "--_ph" : `${ pillHeight } px` ,
388389 "--_by" : `${ open ? 1 : 0 } ` ,
389390 "--_ht" : `translateY(${ open ? ( expand === "bottom" ? 3 : - 3 ) : 0 } px) scale(${ open ? 0.9 : 1 } )` ,
390391 "--_co" : `${ open ? 1 : 0 } ` ,
391392 } ) ,
392- [ open , expanded , resolvedPillWidth , pillX , expand ] ,
393+ [ open , expanded , resolvedPillWidth , pillX , expand , pillHeight ] ,
393394 ) ;
394395
395396 /* -------------------------------- Handlers -------------------------------- */
0 commit comments