mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +00:00
fix(comment): set leading-none on badge to ensure second line wraps cleanly without pushing
This commit is contained in:
@@ -3,16 +3,16 @@ import type { UserInfo } from '@/dtos/team'
|
|||||||
import { client } from '@/ui/api/client'
|
import { client } from '@/ui/api/client'
|
||||||
import { Button } from '@/ui/components/ui/button'
|
import { Button } from '@/ui/components/ui/button'
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogDescription,
|
DialogDescription,
|
||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from '@/ui/components/ui/dialog'
|
} from '@/ui/components/ui/dialog'
|
||||||
import { Separator } from '@/ui/components/ui/separator'
|
import { Separator } from '@/ui/components/ui/separator'
|
||||||
import { formatTimeAgo } from '@/ui/lib/time'
|
import { formatTimeAgo } from '@/ui/lib/time'
|
||||||
import { useQuery } from '@tanstack/react-query'
|
import { useQuery } from '@tanstack/react-query'
|
||||||
import { Clock, Download, File, Terminal } from 'lucide-react'
|
import { Download, File, Terminal } from 'lucide-react'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Markdown from 'react-markdown'
|
import Markdown from 'react-markdown'
|
||||||
import { Avatar, AvatarFallback } from '../ui/avatar'
|
import { Avatar, AvatarFallback } from '../ui/avatar'
|
||||||
@@ -177,8 +177,7 @@ export const MessageCard: React.FC<MessageCardProps> = ({
|
|||||||
|
|
||||||
<div className="flow-root mt-1">
|
<div className="flow-root mt-1">
|
||||||
{message.second !== null && message.second !== undefined && frameRate && (
|
{message.second !== null && message.second !== undefined && frameRate && (
|
||||||
<div className="float-left select-none bg-blue-100 dark:bg-blue-900/40 text-blue-600 dark:text-blue-300 px-2.5 py-0.5 mt-0.5 mr-2 rounded-sm text-xs font-mono font-bold flex items-center gap-1 border border-blue-200 dark:border-blue-800 shadow-sm">
|
<div className="float-left select-none bg-blue-100 dark:bg-blue-900/40 text-blue-600 dark:text-blue-300 px-2.5 py-1 mt-[2px] mr-2 rounded-sm text-xs leading-none font-mono font-bold flex items-center gap-1">
|
||||||
<Clock className="w-3 h-3" />
|
|
||||||
{formatTimestamp(message.second, frameRate)}
|
{formatTimestamp(message.second, frameRate)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user