Commit de9e0433 by zhaochengxiang

全文检索资产详情调整样式

parent 7a6932d8
......@@ -83,6 +83,7 @@ export class App extends React.Component {
onGlobalStateChange
}}>
<AssetDetail
reference='full-search'
id={id}
terms={terms}
/>
......
......@@ -7,7 +7,7 @@ import { dispatch } from '../../../../model';
const AssetDetail = (props)=>{
const { id, dirId, terms } = props;
const { id, dirId, terms, reference = '' } = props;
const [ asset, setAsset ] = useState('');
const [ types, setTypes ] = useState([]);
const [ loading, setLoading ] = useState(false);
......@@ -89,7 +89,7 @@ const AssetDetail = (props)=>{
return (
<div key={index}>
<div className='flex' style={{ alignItems: 'center', padding: '15px 0' }}>
<div className='flex' style={{ alignItems: 'center', padding: (reference==='full-search'&&index===0)?'0 0 15px':'15px 0' }}>
<div style={{ width: 3, height: 14, backgroundColor: '#0069AC', marginRight: 5 }} />
<span style={{ fontWeight: 'bold', color: '#464646' }}>{type||''}</span>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment