Skip to content

Commit

Permalink
fixed storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh3nyaZh3nya committed Dec 19, 2024
1 parent f6f1ef0 commit b89b107
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const cards = [
text: "A “card” is a UI design pattern that groups related information in a flexible-size container visually resembling a playing card.",
date: "02.04.2023",
author: "by Tyler, The Creator",
functionButton: testButtonNews,
textButton: "Читать",
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/Parts/Footer/Erg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const props = defineProps({
})
const isMultiParagraph = (html: string): boolean => {
if (!html || process.server) return false;
if (!html || import.meta.env.SSR) return false; // Проверяем серверную среду через Vite
const parser = new DOMParser();
const doc = parser.parseFromString(html, 'text/html');
const paragraphs = doc.querySelectorAll('p, a, br');
Expand Down

0 comments on commit b89b107

Please sign in to comment.