diff --git a/app/globals.css b/app/globals.css index 84ff6ef..3533c9a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -284,62 +284,6 @@ body { padding-bottom: 10px; } -.indent-0 { - text-indent: 0px !important; -} - -.indent-1 { - text-indent: 4px !important; -} - -.indent-2 { - text-indent: 8px !important; -} - -.indent-3 { - text-indent: 12px !important; -} - -.indent-4 { - text-indent: 16px !important; -} - -.indent-5 { - text-indent: 20px !important; -} - -.indent-6 { - text-indent: 24px !important; -} - -.indent-7 { - text-indent: 28px !important; -} - -.indent-8 { - text-indent: 32px !important; -} - -.indent-9 { - text-indent: 36px !important; -} - -.indent-10 { - text-indent: 40px !important; -} - -.indent-11 { - text-indent: 44px !important; -} - -.indent-12 { - text-indent: 48px !important; -} - -.indent-13 { - text-indent: 52px !important; -} - /* Styles pour l'éditeur principal avec classes dynamiques */ .editor-content .tiptap > p:first-child, .editor-content .tiptap > h1:first-child, @@ -350,14 +294,17 @@ body { .editor-content .tiptap p { color: var(--color-editor-text); + text-indent: 1.25rem; + overflow-wrap: anywhere; margin-top: 0.7em; margin-bottom: 0.7em; } -.editor-content .tiptap p { - text-indent: inherit; +.no-text-indent .editor-content .tiptap p { + text-indent: 0; } + .editor-content .tiptap p strong { font-weight: 900; color: var(--color-editor-bold); @@ -628,11 +575,17 @@ body { .tiptap-draft p { font-family: 'Lora', sans-serif; - text-indent: 30px; + text-indent: 1.25rem; + overflow-wrap: anywhere; margin-top: 0.7em; margin-bottom: 0.7em; } +.no-text-indent .tiptap-draft p { + text-indent: 0; +} + + /* Form input base */ .input-base { @apply w-full text-text-primary bg-dark-background px-4 py-2.5 rounded-xl diff --git a/components/book/BookCard.tsx b/components/book/BookCard.tsx index 38b9104..41adb69 100644 --- a/components/book/BookCard.tsx +++ b/components/book/BookCard.tsx @@ -18,23 +18,21 @@ export default function BookCard({book, onClickCallback, index, syncStatus}: Boo return (
{t("locationComponent.noElementAvailable")}
+{t("locationComponent.editToAdd")}
+ {t("textEditor.indentDisabledDescription")} +
+