feat: Upgrade to TailwindCSS 4 & DaisyUI 5 (#263)
Also fixes #251 Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/263 Co-authored-by: joostdecock <joost@joost.at> Co-committed-by: joostdecock <joost@joost.at>
This commit is contained in:
parent
a2863e5158
commit
44e04a4cef
164 changed files with 2361 additions and 2658 deletions
|
@ -12,21 +12,21 @@ export const Breadcrumbs = ({ crumbs = [], title, Link = false }) => {
|
|||
if (Link === false) Link = RegularLink
|
||||
|
||||
return (
|
||||
<div className="tw-tailwind-container tw-p-0">
|
||||
<div className="tw:tailwind-container tw:p-0">
|
||||
<ul
|
||||
className="tw-flex tw-flex-row tw-items-center tw-gap-2 tw-m-0 tw-py-4"
|
||||
className="tw:flex tw:flex-row tw:items-center tw:gap-2 tw:m-0 tw:py-4"
|
||||
style={{ paddingLeft: 0 }}
|
||||
>
|
||||
<li className="tw-inline">
|
||||
<li className="tw:inline">
|
||||
<Link href="/">Home</Link>
|
||||
</li>
|
||||
<Spacer />
|
||||
{crumbs.map((crumb, i) => (
|
||||
<li key={i} className="tw-inline">
|
||||
<li key={i} className="tw:inline">
|
||||
<Link href={crumb.href}>{crumb.label}</Link>
|
||||
</li>
|
||||
))}
|
||||
<li className="tw-inline">{title}</li>
|
||||
<li className="tw:inline">{title}</li>
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
|
@ -42,4 +42,4 @@ const RegularLink = ({ href, children }) => <a href={href}>{children}</a>
|
|||
/*
|
||||
* This goes between breadcrumbs
|
||||
*/
|
||||
const Spacer = () => <li className="tw-inline">»</li>
|
||||
const Spacer = () => <li className="tw:inline">»</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue