style: community backend detail title
This commit is contained in:
@@ -76,6 +76,8 @@ export function useUpdateChunkedList(options: {
|
||||
} else {
|
||||
cacheDataListRef.current[updateIndex] = updateItem;
|
||||
}
|
||||
|
||||
// TODO: only push items created after triggerAt
|
||||
if (
|
||||
triggerAt?.current &&
|
||||
Date.parse(item.created_at) >= triggerAt.current
|
||||
|
||||
@@ -8,6 +8,10 @@ import styled from 'styled-components';
|
||||
import { generateIcon } from '../components/backend-card';
|
||||
|
||||
const Title = styled.div`
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding-bottom: 16px;
|
||||
background-color: var(--ant-color-bg-elevated);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -54,7 +58,6 @@ const UL = styled.ul`
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
.label {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -43,11 +43,6 @@ const BackendFields: React.FC = () => {
|
||||
useCompareEnvs();
|
||||
|
||||
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) {
|
||||
form.setFieldValue('env', { ...(option?.data?.env || {}) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user