From b36e39edf02f35723c1223451ee44fad61a7af9b Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 4 May 2024 20:17:47 +0300 Subject: [PATCH] postmerge --- package.json | 2 +- src/components/Nav/HeaderAuth.tsx | 2 +- .../Topic/TopicBadge/TopicBadge.module.scss | 11 +++++++++-- src/renderer/_default.page.client.tsx | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5a69d92b..6a260f6e 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "typograf": "7.3.0", "uniqolor": "1.1.0", "vike": "0.4.148", - "vite": "5.2.10", + "vite": "5.2.11", "vite-plugin-mkcert": "^1.17.3", "vite-plugin-node-polyfills": "0.21.0", "vite-plugin-sass-dts": "^1.3.17", diff --git a/src/components/Nav/HeaderAuth.tsx b/src/components/Nav/HeaderAuth.tsx index e227cded..1d4c494d 100644 --- a/src/components/Nav/HeaderAuth.tsx +++ b/src/components/Nav/HeaderAuth.tsx @@ -57,7 +57,7 @@ export const HeaderAuth = (props: Props) => { toggleEditorPanel() } - const handleSaveClick = () => { + const _handleSaveClick = () => { const hasTopics = form.selectedTopics?.length > 0 if (hasTopics) { saveShout(form) diff --git a/src/components/Topic/TopicBadge/TopicBadge.module.scss b/src/components/Topic/TopicBadge/TopicBadge.module.scss index b830a7c8..52edb734 100644 --- a/src/components/Topic/TopicBadge/TopicBadge.module.scss +++ b/src/components/Topic/TopicBadge/TopicBadge.module.scss @@ -45,9 +45,11 @@ .info { @include font-size(1.4rem); + border: none; - //display: flex; - //flex-direction: column; + + // display: flex; + // flex-direction: column; &:hover { background: unset; @@ -61,11 +63,13 @@ .title { @include font-size(2.2rem); + font-weight: bold; } .description { @include font-size(1.6rem); + line-height: 1.4; margin: 0.8rem 0; -webkit-line-clamp: 2; @@ -103,6 +107,7 @@ .title { @include font-size(1.4rem); + font-weight: 500; line-height: 1em; color: var(--blue-500); @@ -111,7 +116,9 @@ .description { color: var(--black-400); + @include font-size(1.2rem); + font-weight: 500; margin: 0; } diff --git a/src/renderer/_default.page.client.tsx b/src/renderer/_default.page.client.tsx index b4db6980..8b74aca6 100644 --- a/src/renderer/_default.page.client.tsx +++ b/src/renderer/_default.page.client.tsx @@ -1,7 +1,7 @@ import type { PageContextBuiltInClientWithClientRouting } from 'vike/types' import type { PageContext } from './types' -import * as Sentry from '@sentry/browser' +import { init as SentryInit, replayIntegration } from '@sentry/browser' import i18next from 'i18next' import HttpApi from 'i18next-http-backend' import ICU from 'i18next-icu' @@ -21,10 +21,10 @@ export const render = async (pageContext: PageContextBuiltInClientWithClientRout const searchParams = Object.fromEntries(new URLSearchParams(search)) initRouter(pathname, searchParams) - Sentry.init({ + SentryInit({ dsn: GLITCHTIP_DSN, tracesSampleRate: 0.01, - integrations: [Sentry.replayIntegration()], + integrations: [replayIntegration()], // Session Replay replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.