chore(cam): Liquid Glass UI kiti 2.0.0 → 2.0.4 (→ 2.13.1)
All checks were successful
Deploy / deploy (push) Successful in 8m24s
All checks were successful
Deploy / deploy (push) Successful in 8m24s
src/components/liquid-glass altındaki dört dosya kitin son hâlinden (bilalgursen/liquid-glass@d80330a) yeniden kopyalandı: boşta kare çizilmiyor, GPU'ya giden iş azaldı (Engine 2.0.2, Card 2.0.3). Kitin gizli şerit düzeltmesi rozetin CSS şeridine taşındı. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
// KolayTercih (DESIGN.md §4.50): Liquid Glass UI 2.0.0'dan (bilalgursen/liquid-glass@9c65d01,
|
||||
// 24 Kas 2026) olduğu gibi alındı. Elle değiştirilmez; kit güncellenince dosya yeniden kopyalanır.
|
||||
// KolayTercih (DESIGN.md §4.50): Liquid Glass UI 2.0.4'ten (bilalgursen/liquid-glass@d80330a,
|
||||
// 25 Kas 2026) olduğu gibi alındı. Elle değiştirilmez; kit güncellenince dosya yeniden kopyalanır.
|
||||
|
||||
// GlassLayer — turns any positioned element (a button, a link, a pill) into liquid glass.
|
||||
// Put it as the FIRST child of the host and mark the host with `data-glass-host`:
|
||||
@@ -199,6 +199,8 @@ export const GLASS_CSS = `
|
||||
@keyframes glass-spin{to{transform:rotate(1turn)}}
|
||||
[data-glass-spin]{animation:glass-spin .8s linear infinite}
|
||||
[data-glass-ready] [data-glass-fallback]{visibility:hidden}
|
||||
/* A hidden fallback stops moving too. Its marquee ran on unseen, on the main thread, and made the browser work out the page's layers again on every frame of anything else on the page. */
|
||||
[data-glass-ready] [data-glass-fallback] [data-glass-marquee]{animation:none}
|
||||
@media (prefers-reduced-motion:reduce){[data-glass-marquee],[data-glass-in],[data-glass-draw],[data-glass-spin]{animation:none}}
|
||||
`
|
||||
|
||||
@@ -492,7 +494,10 @@ export function GlassLayer({
|
||||
const melt = swell ? Math.ceil(cohesionSoftness(h) / 4) + 3 : 0
|
||||
const padX = Math.max(8, Math.ceil(reach * (1 + most) - w / 2 + 2), melt)
|
||||
const padTop = Math.max(10, Math.ceil(hy * (1 + most) - h / 2 + 2), melt)
|
||||
const padBottom = Math.round(h * 0.8 + 4)
|
||||
// Below the glass the canvas keeps room for its drop shadow. Glass that casts none (a card:
|
||||
// its shadow is CSS) needs no more there than above it, and a canvas that much smaller is
|
||||
// that much less to paint, upload, shade and copy on every frame.
|
||||
const padBottom = (tuneRef.current.optics?.shadow ?? 1) <= 0 ? padTop : Math.round(h * 0.8 + 4)
|
||||
const origin = `${padX + w / 2}px ${padTop + h / 2}px`
|
||||
const undo = px === 1 && py === 1 ? '' : `${(1 / px).toFixed(6)} ${(1 / py).toFixed(6)}`
|
||||
if (undo !== unstretched || (undo && origin !== unstretchedAt)) {
|
||||
|
||||
Reference in New Issue
Block a user