1
0
Fork 0

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:
joostdecock 2025-04-18 08:07:13 +00:00 committed by Joost De Cock
parent a2863e5158
commit 44e04a4cef
164 changed files with 2361 additions and 2658 deletions

View file

@ -43,7 +43,7 @@ export const Password = ({ welcome = false, Link = false }) => {
}
return (
<div className="tw-w-full">
<div className="tw:w-full">
<PasswordInput
id="account-password"
label="Something only you know"
@ -53,7 +53,7 @@ export const Password = ({ welcome = false, Link = false }) => {
placeholder="Tip: use a password manager"
/>
<button
className={`tw-flex tw-flex-row tw-gap-2 tw-items-center tw-daisy-btn tw-justify-between tw-daisy-btn-primary tw-w-full md:tw-w-auto tw-w-full`}
className={`tw:flex tw:flex-row tw:gap-2 tw:items-center tw:daisy-btn tw:justify-between tw:daisy-btn-primary tw:w-full tw:md:w-auto tw:w-full`}
onClick={save}
disabled={password.length < 4}
>
@ -66,9 +66,9 @@ export const Password = ({ welcome = false, Link = false }) => {
We do not enforce a password policy, but we do recommend you enable Two-Factor
Authentication to keep your FreeSewing account safe.
</p>
<p className="tw-text-right tw-m-0 tw-pt-0">
<Link className="tw-daisy-btn tw-daisy-btn-accent" href="/account/mfa">
Two-Factor Authentication <RightIcon className="tw-h-6 tw-w-6 tw-ml-2" />
<p className="tw:text-right tw:m-0 tw:pt-0">
<Link className="tw:daisy-btn tw:daisy-btn-accent" href="/account/mfa">
Two-Factor Authentication <RightIcon className="tw:h-6 tw:w-6 tw:ml-2" />
</Link>
</p>
</Popout>