From d054b615b129634f815e93f90c6712834e97686a Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Sun, 24 Mar 2024 22:39:05 +0600 Subject: [PATCH 1/6] Vote 2.1: Added input type of voting --- .../comment/__snapshots__/index.spec.tsx.snap | 6 +- .../__snapshots__/index.spec.tsx.snap | 5 ++ .../decks/columns/helpers/_helpers.scss | 18 ---- .../__snapshots__/index.spec.tsx.snap | 89 ++++++++++++------- .../components/entry-vote-btn/index.tsx | 16 ++-- .../__snapshots__/index.spec.tsx.snap | 3 + src/common/features/ui/input/_input-vote.scss | 18 ++++ src/common/features/ui/input/index.ts | 1 + src/common/features/ui/input/input-vote.tsx | 39 ++++++++ 9 files changed, 130 insertions(+), 65 deletions(-) create mode 100644 src/common/features/ui/input/_input-vote.scss create mode 100644 src/common/features/ui/input/input-vote.tsx diff --git a/src/common/components/comment/__snapshots__/index.spec.tsx.snap b/src/common/components/comment/__snapshots__/index.spec.tsx.snap index f48ce3fbf62..aaa5cf63152 100644 --- a/src/common/components/comment/__snapshots__/index.spec.tsx.snap +++ b/src/common/components/comment/__snapshots__/index.spec.tsx.snap @@ -7,6 +7,7 @@ exports[`(1) Default render 1`] = ` >
@@ -372,6 +373,7 @@ exports[`(2) Cancellable, in progress 1`] = ` >
diff --git a/src/common/components/community-selector/__snapshots__/index.spec.tsx.snap b/src/common/components/community-selector/__snapshots__/index.spec.tsx.snap index d4d0648b17a..9b184fb47aa 100644 --- a/src/common/components/community-selector/__snapshots__/index.spec.tsx.snap +++ b/src/common/components/community-selector/__snapshots__/index.spec.tsx.snap @@ -4,6 +4,7 @@ exports[`(1) Empty tags. 1`] = ` div { - @apply w-full bg-gray-300 dark:bg-dark-default; - - > div:first-child { - @apply bg-blue-dark-sky; - } - } } .estimated { @@ -58,16 +50,6 @@ } } - .voting-controls-down { - .slider { - > div { - > div:first-child { - @apply bg-red; - } - } - } - } - @media screen and (max-width: 560px) { width: calc(100vw - 67px - 24px); left: -12px; diff --git a/src/common/components/entry-vote-btn/__snapshots__/index.spec.tsx.snap b/src/common/components/entry-vote-btn/__snapshots__/index.spec.tsx.snap index 25ae346ad6a..718e88faa75 100644 --- a/src/common/components/entry-vote-btn/__snapshots__/index.spec.tsx.snap +++ b/src/common/components/entry-vote-btn/__snapshots__/index.spec.tsx.snap @@ -41,50 +41,67 @@ Array [
-
-
-
+ %
- +
+
+ + + +
+
+ + + +
+
+
- 100.0% -
+ />
- this.downSliderChanged(x)} - /> + this.downSliderChanged(x)} />
-
{`${downSliderVal.toFixed(1)}%`}
+