0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

fix(console): prevent cell overflow for user table (#1215)

This commit is contained in:
Wang Sijie 2022-06-24 10:56:10 +08:00 committed by GitHub
parent 8d2f88b96d
commit f5de5196fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 9 deletions

View file

@ -9,6 +9,10 @@
margin-left: _.unit(3); margin-left: _.unit(3);
} }
.content {
padding-right: _.unit(4);
max-width: 100%;
.title { .title {
font: var(--font-body-medium); font: var(--font-body-medium);
color: var(--color-text-link); color: var(--color-text-link);
@ -18,6 +22,10 @@
.subtitle { .subtitle {
font: var(--font-body-small); font: var(--font-body-small);
color: var(--color-outline); color: var(--color-outline);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
&.compact { &.compact {

View file

@ -31,7 +31,7 @@ const Preview = ({ signInExperience, className }: Props) => {
const light = { value: AppearanceMode.LightMode, title: t('sign_in_exp.preview.light') }; const light = { value: AppearanceMode.LightMode, title: t('sign_in_exp.preview.light') };
const dark = { value: AppearanceMode.DarkMode, title: t('sign_in_exp.preview.dark') }; const dark = { value: AppearanceMode.DarkMode, title: t('sign_in_exp.preview.dark') };
if (!signInExperience?.branding.isDarkModeEnabled) { if (!signInExperience?.color.isDarkModeEnabled) {
return [light]; return [light];
} }