diff --git a/flake.nix b/flake.nix index 8a993b6..b96faf8 100644 --- a/flake.nix +++ b/flake.nix @@ -190,7 +190,7 @@ # When modifying npm dependencies, replace the hash with pkgs.lib.fakeSha256 # then run `nix build .#frontend`. Use the hash in the error to replace the value. - npmDepsHash = "sha256-bEtkS+1YhC66d1iBX0w+5a2Sots7lyoDYDnSpl28iVI="; + npmDepsHash = "sha256-dVEKDZa/Bk1vUXzlH49Vaok5L01T9DRo64mOuTIiyks="; installPhase = '' runHook preInstall diff --git a/frontend/assets/main.css b/frontend/assets/main.css index 878e488..fde3789 100644 --- a/frontend/assets/main.css +++ b/frontend/assets/main.css @@ -40,3 +40,15 @@ body, .coco-text { color: #ffffff; } + +/* +remove the arrow set in p-popover::before +can be removed once the issue is fixed in primevue +*/ +.p-popover::before, +.p-popover::after, +.p-confirmpopup::before, +.p-confirmpopup::after { + content: none; + display: none; +} \ No newline at end of file diff --git a/frontend/assets/richtext.css b/frontend/assets/richtext.css new file mode 100644 index 0000000..55bb2a7 --- /dev/null +++ b/frontend/assets/richtext.css @@ -0,0 +1,64 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@layer base { + .rich-text-content h1 { + @apply text-3xl font-bold mb-2; + } + + .rich-text-content h2 { + @apply text-2xl font-bold mb-2; + } + + .rich-text-content h3 { + @apply text-xl font-bold mb-2; + } + + .rich-text-content h4 { + @apply text-lg font-bold mb-2; + } + + .rich-text-content h5 { + @apply text-base font-bold mb-2; + } + + .rich-text-content h6 { + @apply text-sm font-bold mb-1; + } + + .rich-text-content p { + @apply mb-4 leading-tight; + } + + .rich-text-content ul { + @apply list-disc pl-5 mb-4; + } + + .rich-text-content a { + @apply underline text-blue-600 hover:text-blue-800; + } + + .rich-text-content em, + .rich-text-content i { + @apply italic; + } + + .rich-text-content strong, + .rich-text-content b { + @apply font-bold; + } + + .rich-text-content u { + @apply underline; + } + + .rich-text-content s { + @apply line-through; + } + + .rich-text-content q, + .rich-text-content blockquote { + @apply border-l-4 border-gray-300 pl-2 italic; + } +} \ No newline at end of file diff --git a/frontend/components/CommentsDisplayer.vue b/frontend/components/CommentsDisplayer.vue index 9972a08..77964d8 100644 --- a/frontend/components/CommentsDisplayer.vue +++ b/frontend/components/CommentsDisplayer.vue @@ -1,11 +1,12 @@ diff --git a/frontend/components/NominatimPicker.vue b/frontend/components/NominatimPicker.vue index a6da8e7..bddeab6 100644 --- a/frontend/components/NominatimPicker.vue +++ b/frontend/components/NominatimPicker.vue @@ -1,7 +1,7 @@