mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Apply @tailwindcss/upgrade canonical class migrations
Ran `npx @tailwindcss/upgrade`. Bumps tailwindcss and @tailwindcss/vite to 4.2.x and migrates arbitrary-value syntax to the canonical v4 shorthands (e.g. translate-x-[var(--x)] \u2192 translate-x-(--x), whitespace cleanups inside calc()).
This commit is contained in:
18 files changed
+41
-41
No files matched your search
@@ -33,7 +33,7 @@ export function AudioVisualizer({
|
||||
)}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<div className="flex-shrink-0 w-10 h-10 rounded-full bg-muted flex items-center justify-center overflow-hidden">
|
||||
<div className="shrink-0 w-10 h-10 rounded-full bg-muted flex items-center justify-center overflow-hidden">
|
||||
{avatarUrl ? (
|
||||
<img src={avatarUrl} alt="" className="w-full h-full object-cover" />
|
||||
) : (
|
||||
|
||||
@@ -599,7 +599,7 @@ export function NoteContent({
|
||||
}, [groupedTokens]);
|
||||
|
||||
return (
|
||||
<div dir="auto" className={cn('whitespace-pre-wrap break-words overflow-hidden', className, isEmojiOnly && 'text-5xl leading-tight')}>
|
||||
<div dir="auto" className={cn('whitespace-pre-wrap wrap-break-word overflow-hidden', className, isEmojiOnly && 'text-5xl leading-tight')}>
|
||||
{groupedTokens.map((token, i) => {
|
||||
switch (token.type) {
|
||||
case 'text':
|
||||
|
||||
@@ -29,7 +29,7 @@ export function WebxdcEmbed({ url, name, icon, className }: WebxdcEmbedProps) {
|
||||
)}
|
||||
>
|
||||
{icon && (
|
||||
<img src={icon} alt="" className="w-10 h-10 rounded object-cover flex-shrink-0" />
|
||||
<img src={icon} alt="" className="w-10 h-10 rounded object-cover shrink-0" />
|
||||
)}
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="font-medium truncate">{name ?? 'WebXDC app'}</div>
|
||||
|
||||
@@ -413,10 +413,10 @@ export function ZapDialog({ target, children, className }: ZapDialogProps) {
|
||||
</Button>
|
||||
</DrawerClose>
|
||||
|
||||
<DrawerTitle className="text-lg break-words pt-2">
|
||||
<DrawerTitle className="text-lg wrap-break-word pt-2">
|
||||
{invoice ? 'Lightning Payment' : 'Send a Zap'}
|
||||
</DrawerTitle>
|
||||
<DrawerDescription className="text-sm break-words text-center">
|
||||
<DrawerDescription className="text-sm wrap-break-word text-center">
|
||||
{invoice ? (
|
||||
'Pay with Bitcoin Lightning Network'
|
||||
) : (
|
||||
@@ -441,10 +441,10 @@ export function ZapDialog({ target, children, className }: ZapDialogProps) {
|
||||
</DialogTrigger>
|
||||
<DialogContent className="sm:max-w-[425px] max-h-[95vh] overflow-hidden" data-testid="zap-modal">
|
||||
<DialogHeader>
|
||||
<DialogTitle className="text-lg break-words">
|
||||
<DialogTitle className="text-lg wrap-break-word">
|
||||
{invoice ? 'Lightning Payment' : 'Send a Zap'}
|
||||
</DialogTitle>
|
||||
<DialogDescription className="text-sm text-center break-words">
|
||||
<DialogDescription className="text-sm text-center wrap-break-word">
|
||||
{invoice ? (
|
||||
'Pay with Bitcoin Lightning Network'
|
||||
) : (
|
||||
|
||||
@@ -106,7 +106,7 @@ When placing decorative elements behind content with `-z-10` (e.g. blurred backg
|
||||
|
||||
```tsx
|
||||
<section className="relative isolate">
|
||||
<div className="absolute inset-0 -z-10 bg-gradient-to-br from-primary/20 to-transparent" />
|
||||
<div className="absolute inset-0 -z-10 bg-linear-to-br from-primary/20 to-transparent" />
|
||||
{/* content */}
|
||||
</section>
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user