feat(core): adjust admin panel style (#7116)

This commit is contained in:
forehalo
2024-05-31 10:43:29 +00:00
parent 002b9e80f8
commit c96fb46751
6 changed files with 59 additions and 29 deletions

View File

@@ -44,7 +44,7 @@ export const moduleContainer = style({
display: 'flex',
flexDirection: 'column',
padding: '16px',
maxWidth: '800px',
maxWidth: '960px',
margin: 'auto',
gap: 16,
});

View File

@@ -107,9 +107,7 @@ export const AdminPanel = () => {
>
<div className={styles.module}>{moduleName}</div>
{configs?.map(config => {
const { id, key, type, description, updatedAt } =
config;
const title = `${key} (${id})`;
const { id, type, description, updatedAt } = config;
const isValueEqual = isEqual(
config.value,
configValues[id]
@@ -121,8 +119,7 @@ export const AdminPanel = () => {
return (
<RuntimeSettingRow
key={id}
id={key}
title={title}
id={id}
description={description}
lastUpdatedTime={updatedAt}
operation={renderInput(