From 92b4ee1cea22114f713356934e203bbaaf285970 Mon Sep 17 00:00:00 2001 From: Vasilii Mikhailovskii Date: Fri, 6 Dec 2024 22:34:49 +0200 Subject: [PATCH] fix css --- .../src/components/create/CreateSection.vue | 8 ++++--- .../src/components/manage/QRCodeCard.vue | 4 +++- apps/frontend/src/layouts/LayoutWithTabs.vue | 22 +++++++++---------- apps/frontend/src/router/index.ts | 14 ++++++------ apps/frontend/src/views/CreateView.vue | 1 + .../views/{ => manage}/ManageChatsView.vue | 7 ++---- .../{ => manage}/ManageQRCodeChatView.vue | 0 .../{ => manage}/ManageQRCodeReadyView.vue | 0 .../views/{ => manage}/ManageQRCodeView.vue | 2 +- .../views/{ => manage}/ManageQRCodesView.vue | 2 +- 10 files changed, 31 insertions(+), 29 deletions(-) rename apps/frontend/src/views/{ => manage}/ManageChatsView.vue (85%) rename apps/frontend/src/views/{ => manage}/ManageQRCodeChatView.vue (100%) rename apps/frontend/src/views/{ => manage}/ManageQRCodeReadyView.vue (100%) rename apps/frontend/src/views/{ => manage}/ManageQRCodeView.vue (98%) rename apps/frontend/src/views/{ => manage}/ManageQRCodesView.vue (95%) diff --git a/apps/frontend/src/components/create/CreateSection.vue b/apps/frontend/src/components/create/CreateSection.vue index 4a1dda0..3338fd4 100644 --- a/apps/frontend/src/components/create/CreateSection.vue +++ b/apps/frontend/src/components/create/CreateSection.vue @@ -16,12 +16,14 @@ watch( () => sectionRef.value && props.isNextActiveSection, (isNextActiveSection) => { if (isNextActiveSection) { + sectionRef.value?.scrollIntoView({ behavior: 'smooth', block: 'center' }) + const input = sectionRef.value?.querySelector('input[type="text"]') if (input instanceof HTMLInputElement) { - input.focus() + setTimeout(() => { + input.focus() + }, 200) } - - sectionRef.value?.scrollIntoView({ behavior: 'smooth' }) } }, { immediate: true }, diff --git a/apps/frontend/src/components/manage/QRCodeCard.vue b/apps/frontend/src/components/manage/QRCodeCard.vue index dbf8251..4d821f5 100644 --- a/apps/frontend/src/components/manage/QRCodeCard.vue +++ b/apps/frontend/src/components/manage/QRCodeCard.vue @@ -12,7 +12,9 @@ -
Создано: {{ formatedCreatedAt }}
+
+ Создан: {{ formatedCreatedAt }} +
diff --git a/apps/frontend/src/layouts/LayoutWithTabs.vue b/apps/frontend/src/layouts/LayoutWithTabs.vue index 67e96b6..0ded7bf 100644 --- a/apps/frontend/src/layouts/LayoutWithTabs.vue +++ b/apps/frontend/src/layouts/LayoutWithTabs.vue @@ -1,9 +1,9 @@ diff --git a/apps/frontend/src/views/ManageQRCodeChatView.vue b/apps/frontend/src/views/manage/ManageQRCodeChatView.vue similarity index 100% rename from apps/frontend/src/views/ManageQRCodeChatView.vue rename to apps/frontend/src/views/manage/ManageQRCodeChatView.vue diff --git a/apps/frontend/src/views/ManageQRCodeReadyView.vue b/apps/frontend/src/views/manage/ManageQRCodeReadyView.vue similarity index 100% rename from apps/frontend/src/views/ManageQRCodeReadyView.vue rename to apps/frontend/src/views/manage/ManageQRCodeReadyView.vue diff --git a/apps/frontend/src/views/ManageQRCodeView.vue b/apps/frontend/src/views/manage/ManageQRCodeView.vue similarity index 98% rename from apps/frontend/src/views/ManageQRCodeView.vue rename to apps/frontend/src/views/manage/ManageQRCodeView.vue index 646389a..b5076e8 100644 --- a/apps/frontend/src/views/ManageQRCodeView.vue +++ b/apps/frontend/src/views/manage/ManageQRCodeView.vue @@ -9,7 +9,7 @@ content="Просматривайте и управляйте сообщениями, отправленными через ваш QR-код. Полная конфиденциальность и удобный интерфейс чата" /> -
+
diff --git a/apps/frontend/src/views/ManageQRCodesView.vue b/apps/frontend/src/views/manage/ManageQRCodesView.vue similarity index 95% rename from apps/frontend/src/views/ManageQRCodesView.vue rename to apps/frontend/src/views/manage/ManageQRCodesView.vue index 329c9a0..4672ee5 100644 --- a/apps/frontend/src/views/ManageQRCodesView.vue +++ b/apps/frontend/src/views/manage/ManageQRCodesView.vue @@ -11,7 +11,7 @@