From 4f6a96a49a38614d0ce52e70f559f645d9710d06 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sun, 1 Mar 2026 02:01:01 +0700 Subject: [PATCH] add team name and rm scroll --- src/components/GameWindow.vue | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/components/GameWindow.vue b/src/components/GameWindow.vue index 055d997..966c45c 100644 --- a/src/components/GameWindow.vue +++ b/src/components/GameWindow.vue @@ -26,6 +26,7 @@ type Team = { actions: Action[] } +const inputPlace = ref(false) const login = ref("") const password = ref("") const place = ref("") @@ -94,6 +95,7 @@ function getTeam() { } function addAction() { + inputPlace.value = true const placeValue = place.value.trim() if (placeValue === "") { place.value = "" @@ -150,7 +152,11 @@ function getGame() { // Автоматическая прокрутка при изменении items watch(actions, () => { + if (inputPlace.value === false) { + return + } scrollToBottom(); + inputPlace.value = false }, { deep: true }); let intervalId = 0 @@ -177,19 +183,16 @@ onMounted(() => { }); }); -// function formatText(text: string) { -// return text.replaceAll(' ', ' ') -// }