style: community backend detail title

This commit is contained in:
jialin
2026-02-13 12:26:43 +08:00
parent c67a8c4120
commit af9890b16c
3 changed files with 6 additions and 6 deletions
+2
View File
@@ -76,6 +76,8 @@ export function useUpdateChunkedList(options: {
} else { } else {
cacheDataListRef.current[updateIndex] = updateItem; cacheDataListRef.current[updateIndex] = updateItem;
} }
// TODO only push items created after triggerAt
if ( if (
triggerAt?.current && triggerAt?.current &&
Date.parse(item.created_at) >= triggerAt.current Date.parse(item.created_at) >= triggerAt.current
@@ -8,6 +8,10 @@ import styled from 'styled-components';
import { generateIcon } from '../components/backend-card'; import { generateIcon } from '../components/backend-card';
const Title = styled.div` const Title = styled.div`
position: sticky;
top: 0;
padding-bottom: 16px;
background-color: var(--ant-color-bg-elevated);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
@@ -54,7 +58,6 @@ const UL = styled.ul`
flex-direction: column; flex-direction: column;
gap: 12px; gap: 12px;
.label { .label {
font-weight: 500;
font-size: 14px; font-size: 14px;
} }
`; `;
-5
View File
@@ -43,11 +43,6 @@ const BackendFields: React.FC = () => {
useCompareEnvs(); useCompareEnvs();
const handleBackendVersionOnChange = (value: any, option: any) => { const handleBackendVersionOnChange = (value: any, option: any) => {
// const oldEnvs = _.get(initialValues, 'env', {});
// const newEnvs = option.data?.env || {};
// handleCompareEnvs(oldEnvs, newEnvs);
if (Object.keys(option.data?.env || {}).length > 0) { if (Object.keys(option.data?.env || {}).length > 0) {
form.setFieldValue('env', { ...(option?.data?.env || {}) }); form.setFieldValue('env', { ...(option?.data?.env || {}) });
} }