From 14a7e362197307cd69701829db35e488fd17d300 Mon Sep 17 00:00:00 2001 From: Thiago Hernandez Date: Tue, 2 Jul 2024 13:00:37 +0200 Subject: [PATCH] Fix: Added new styles to input group --- src/renderer/modules/KeysTabs/DelayTab.tsx | 40 +++++++--------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/src/renderer/modules/KeysTabs/DelayTab.tsx b/src/renderer/modules/KeysTabs/DelayTab.tsx index 1e482ffd2..448ad2a07 100644 --- a/src/renderer/modules/KeysTabs/DelayTab.tsx +++ b/src/renderer/modules/KeysTabs/DelayTab.tsx @@ -9,21 +9,6 @@ import { Button } from "@Renderer/components/atoms/Button"; import Heading from "@Renderer/components/atoms/Heading"; const Styles = Styled.div` -display: flex; -flex-wrap: wrap; -height: inherit; -h4 { - font-size: 16px; - flex: 0 0 100%; - width: 100%; -} -.description { - margin-top: 8px; - font-size: 14px; - color: ${({ theme }) => theme.styles.macro.descriptionColor}; - flex: 0 0 100%; - width: 100%; -} .form-control { color: ${({ theme }) => theme.styles.form.inputColor}; background: ${({ theme }) => theme.styles.form.inputBackgroundColor}; @@ -39,7 +24,6 @@ h4 { margin-bottom: 0; } .input-group { - max-width: 280px; border-top-right-radius: 0; border-bottom-right-radius: 0; .input-group-text { @@ -66,10 +50,9 @@ h4 { text-align: right; } .inputGroupRandom { - position: relative; .inputIcon { position: absolute; - top: 33%; + top: 50%; left: 95px; transform: translate3d(0, -50%, 0); width: 32px; @@ -174,9 +157,9 @@ class DelayTab extends React.Component { render() { const { fixedSelected, fixedValue, randomValue } = this.state; return ( - +
- + {i18n.editor.macros.delayTabs.title}
@@ -206,7 +189,7 @@ class DelayTab extends React.Component {
{fixedSelected ? (
-
+
{ ms
-

{i18n.editor.macros.delayTabs.minMaxDescription}

+ +

+ {i18n.editor.macros.delayTabs.minMaxDescription} +

) : ( -
-
+
+
{ value={randomValue.min} /> { ms
-
+

{i18n.editor.macros.delayTabs.minMaxDescription}