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:
parent
1e0f0bccd3
commit
4727062544
3 changed files with 8 additions and 5 deletions
|
@ -4,6 +4,12 @@
|
|||
width: 200px;
|
||||
}
|
||||
|
||||
.oneTapSwitch {
|
||||
display: flex;
|
||||
gap: _.unit(6);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.oneTapConfig {
|
||||
display: flex;
|
||||
gap: _.unit(2);
|
||||
|
|
|
@ -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')}
|
||||
/>
|
||||
|
|
|
@ -63,9 +63,6 @@
|
|||
.label {
|
||||
flex: 1;
|
||||
font: var(--font-body-2);
|
||||
display: flex;
|
||||
gap: _.unit(6);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&.error {
|
||||
|
|
Loading…
Add table
Reference in a new issue