0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

refactor(console): fix switch styles (#6132)

This commit is contained in:
Gao Sun 2024-07-01 09:16:15 +08:00 committed by GitHub
parent 1e0f0bccd3
commit 4727062544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -4,6 +4,12 @@
width: 200px;
}
.oneTapSwitch {
display: flex;
gap: _.unit(6);
align-items: center;
}
.oneTapConfig {
display: flex;
gap: _.unit(2);

View file

@ -41,14 +41,14 @@ function GoogleOneTapCard() {
<FormField title="connector_details.google_one_tap.enable_google_one_tap">
<Switch
description={
<>
<div className={styles.oneTapSwitch}>
<img
className={styles.figure}
src={themeToFigure[theme]}
alt="Google One Tap figure"
/>
{t('enable_google_one_tap_description')}
</>
</div>
}
{...register('rawConfig.oneTap.isEnabled')}
/>

View file

@ -63,9 +63,6 @@
.label {
flex: 1;
font: var(--font-body-2);
display: flex;
gap: _.unit(6);
align-items: center;
}
&.error {