update style

This commit is contained in:
Clas Wen 2025-05-24 17:47:49 +08:00
parent 5e12d7051e
commit 928162ece2
2 changed files with 6 additions and 6 deletions

View file

@ -27,8 +27,8 @@ makeLogtoClient().getIdTokenClaims().then((claims) => {
<div class="h-full flex items-center justify-between text-lg max-w-[1024px] mx-auto px-[22px]"> <div class="h-full flex items-center justify-between text-lg max-w-[1024px] mx-auto px-[22px]">
<span id="repair-header" class="font-semibold select-none cursor-default">维修</span> <span id="repair-header" class="font-semibold select-none cursor-default">维修</span>
<div class="flex items-center"> <div class="flex items-center">
<div class="flex items-center gap-2 mr-4 text-sm text-gray-500"> <div class="flex items-center gap-2 mr-4 text-xs text-gray-400">
<a class="hidden text-gray-500" id="repair-admin" href="/repair/admin" class="appearance-none text-gray-500 cursor-pointer">维修管理</a> <a class="hidden text-gray-500 hover:text-gray-700 appearance-none cursor-pointer" id="repair-admin" href="/repair/admin" style="text-decoration:none">维修管理</a>
</div> </div>
<NavigationUser client:load /> <NavigationUser client:load />
</div> </div>

View file

@ -387,16 +387,16 @@ export default function App() {
} }
}, []) }, [])
return ( return (
<section className="box-border mb-24"> <section className="box-border max-w-[1024px] mx-auto px-[22px] mb-24">
<div className="section-content mt-6 flex justify-between items-center"> <div className="mt-6 flex justify-between items-center">
<h2 className="text-2xl font-bold"></h2> <div className="text-2xl font-bold"></div>
{ {
userInfo?.roles?.find(v => v.toLowerCase() == "repair admin") userInfo?.roles?.find(v => v.toLowerCase() == "repair admin")
? <ExportExcelModal></ExportExcelModal> ? <ExportExcelModal></ExportExcelModal>
: <></> : <></>
} }
</div> </div>
<div className="section-content my-8 flex flex-col gap-4"> <div className="my-8 flex flex-col gap-4">
<Table <Table
aria-label="Example table with dynamic content" aria-label="Example table with dynamic content"
sortDescriptor={list.sortDescriptor} sortDescriptor={list.sortDescriptor}