diff --git a/www/src/App.jsx b/www/src/App.jsx index 378408ff4..5fef610f2 100644 --- a/www/src/App.jsx +++ b/www/src/App.jsx @@ -25,7 +25,7 @@ const App = () => { -
+
} /> } /> diff --git a/www/src/App.scss b/www/src/App.scss index 6222c58ce..e0d9c06a8 100644 --- a/www/src/App.scss +++ b/www/src/App.scss @@ -1,7 +1,4 @@ .body-content { - min-width: 400px; - display: flex; margin-top: 58px; - flex-direction: column; padding: 10px 20px; } diff --git a/www/src/Components/Navigation.scss b/www/src/Components/Navigation.scss index 095dfa980..82ac53ea5 100644 --- a/www/src/Components/Navigation.scss +++ b/www/src/Components/Navigation.scss @@ -1,5 +1,9 @@ $nav-outer-margin: 0.75rem; +.nav { + padding-bottom: 1.5rem; +} + nav.navbar { padding: 0; diff --git a/www/src/Pages/InputMacroAddonPage.tsx b/www/src/Pages/InputMacroAddonPage.tsx index 3c99391b5..e7951610c 100644 --- a/www/src/Pages/InputMacroAddonPage.tsx +++ b/www/src/Pages/InputMacroAddonPage.tsx @@ -5,6 +5,7 @@ import { Button, Col, Form, + InputGroup, Nav, OverlayTrigger, Row, @@ -111,23 +112,23 @@ const ButtonMasksComponent = (props) => { buttonMasks, } = props; return ( -
- - {buttonMasks.map((o, i2) => ( - - ))} - -
+ //
+ + {buttonMasks.map((o, i2) => ( + + ))} + + //
); }; @@ -146,77 +147,46 @@ const MacroInputComponent = (props) => { } = props; return ( - - - - - { - setFieldValue( - `${key}.duration`, - e.target.value * (showFrames ? ONE_FRAME_US : 1000), - ); - }} - min={0} - /> - - + + + + { + setFieldValue( + `${key}.duration`, + e.target.value * (showFrames ? ONE_FRAME_US : 1000), + ); + }} + min={0} + /> + {t( showFrames ? 'InputMacroAddon:input-macro-time-label-frames' : 'InputMacroAddon:input-macro-time-label-ms', )} - - + + - - - {BUTTON_MASKS_OPTIONS.filter((mask) => buttonMask & mask.value).map( - (mask, i1) => ( - - { - setFieldValue( - `${key}.buttonMask`, - (buttonMask ^ mask.value) | e.target.value, - ); - }} - error={errors?.buttonMask} - isInvalid={errors?.buttonMask} - translation={t} - buttonLabelType={buttonLabelType} - buttonMasks={BUTTON_MASKS_OPTIONS} - /> - - ), - )} - + {BUTTON_MASKS_OPTIONS.filter((mask) => buttonMask & mask.value).map( + (mask, i1) => ( + { - setFieldValue(`${key}.buttonMask`, buttonMask | e.target.value); + setFieldValue( + `${key}.buttonMask`, + (buttonMask ^ mask.value) | e.target.value, + ); }} error={errors?.buttonMask} isInvalid={errors?.buttonMask} @@ -225,68 +195,68 @@ const MacroInputComponent = (props) => { buttonMasks={BUTTON_MASKS_OPTIONS} /> - - - - {' '} - {t('InputMacroAddon:input-macro-release-and-wait-label')}{' '} + ), + )} + + { + setFieldValue(`${key}.buttonMask`, buttonMask | e.target.value); + }} + error={errors?.buttonMask} + isInvalid={errors?.buttonMask} + translation={t} + buttonLabelType={buttonLabelType} + buttonMasks={BUTTON_MASKS_OPTIONS} + /> - - - - { - setFieldValue( - `${key}.waitDuration`, - e.target.value * (showFrames ? ONE_FRAME_US : 1000), - ); - }} - min={0} - /> - - + + + + {t('InputMacroAddon:input-macro-release-and-wait-label')} + + { + setFieldValue( + `${key}.waitDuration`, + e.target.value * (showFrames ? ONE_FRAME_US : 1000), + ); + }} + min={0} + /> + {t( showFrames ? 'InputMacroAddon:input-macro-time-label-frames' : 'InputMacroAddon:input-macro-time-label-ms', )} - - - - - - - + + + + + + + ); @@ -553,7 +523,7 @@ export default function MacrosPage() {
- + - +
( -
+
@@ -393,7 +393,7 @@ export default function PinMapping() { return ( - + {loadingProfiles && (
@@ -427,7 +427,7 @@ export default function PinMapping() {

{t('PinMapping:sub-header-text')}

-
+
)} - + {profiles.map((_, index) => ( diff --git a/www/src/Pages/SettingsPage.jsx b/www/src/Pages/SettingsPage.jsx index fac53e33f..ab737e9da 100644 --- a/www/src/Pages/SettingsPage.jsx +++ b/www/src/Pages/SettingsPage.jsx @@ -754,7 +754,7 @@ export default function SettingsPage() { , li:
  • }} + components={{ ul:
      , li:
    • }} /> } /> @@ -766,11 +766,8 @@ export default function SettingsPage() { onChange={handleChange} > {PS4_ID_MODES.map((o) => ( - ))} @@ -915,7 +912,7 @@ export default function SettingsPage() { , li:
    • }} + components={{ ul:
        , li:
      • }} /> } /> @@ -927,11 +924,8 @@ export default function SettingsPage() { onChange={handleChange} > {PS4_ID_MODES.map((o) => ( - ))} @@ -1132,7 +1126,7 @@ export default function SettingsPage() { - + - +
        diff --git a/www/src/index.scss b/www/src/index.scss index f2c86d8d9..7be333d62 100644 --- a/www/src/index.scss +++ b/www/src/index.scss @@ -20,7 +20,6 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - min-width: 880px; } h1 {