mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): item preview alignment (#1159)
This commit is contained in:
parent
a868c1ff63
commit
5c43da2201
2 changed files with 2 additions and 7 deletions
|
@ -6,18 +6,13 @@
|
|||
white-space: nowrap;
|
||||
|
||||
> div:not(:first-child) {
|
||||
margin-left: _.unit(4);
|
||||
}
|
||||
|
||||
.icon {
|
||||
flex-shrink: 0;
|
||||
margin-left: _.unit(3);
|
||||
}
|
||||
|
||||
.title {
|
||||
font: var(--font-body-medium);
|
||||
color: var(--color-text-link);
|
||||
text-decoration: none;
|
||||
margin-bottom: _.unit(1);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
|
|
|
@ -15,7 +15,7 @@ type Props = {
|
|||
const ItemPreview = ({ title, subtitle, icon, to, size = 'default' }: Props) => {
|
||||
return (
|
||||
<div className={classNames(styles.item, styles[size])}>
|
||||
{icon && <div className={styles.icon}>{icon}</div>}
|
||||
{icon}
|
||||
<div className={styles.content}>
|
||||
{to && (
|
||||
<Link
|
||||
|
|
Loading…
Reference in a new issue