File tree Expand file tree Collapse file tree
web/src/components/experiment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { useEffect, useState } from 'react';
77import { useTranslation } from 'react-i18next' ;
88import { toast } from 'sonner' ;
99import { SoftBottom } from '../others/SoftBottom' ;
10+ import { Button } from '../ui/button' ;
1011import SubList , { noticeTest } from './SubList' ;
1112
1213export default function ServiceWorker ( ) {
@@ -125,9 +126,9 @@ export default function ServiceWorker() {
125126 { noticeId && (
126127 < div className = "text-info mt-2 flex items-center gap-2" >
127128 < span className = "shrink-0" > { t ( 'serviceId' ) } </ span >
128- < span className = "overflow-hidden text-ellipsis " > { noticeId } </ span >
129- < div
130- className = "bg-background flex shrink-0 cursor-pointer items-center gap-1 rounded-md px-2 py-1 duration-300 active:scale-95 "
129+ < span className = "truncate overflow-hidden" > { noticeId } </ span >
130+ < Button
131+ variant = "secondary "
131132 onClick = { ( ) => {
132133 noticeTest ( noticeId , '自在废物' , '这是我的博客。' )
133134 . then ( ( ) => {
@@ -141,7 +142,7 @@ export default function ServiceWorker() {
141142 >
142143 < Bell className = "size-4" />
143144 { t ( 'notificationTest' ) }
144- </ div >
145+ </ Button >
145146 </ div >
146147 ) }
147148 { noticeId && (
You can’t perform that action at this time.
0 commit comments