mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-07 08:36:49 +08:00
style: 调整面板和图片展示样式,优化布局和视觉效果
This commit is contained in:
@@ -190,20 +190,22 @@ const FaceExplore: React.FC = () => {
|
|||||||
className="cluster-card"
|
className="cluster-card"
|
||||||
cover={
|
cover={
|
||||||
<div style={{
|
<div style={{
|
||||||
height: 200,
|
height: 180,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: '#f8f9fa'
|
backgroundColor: '#f8f9fa',
|
||||||
|
overflow: 'hidden'
|
||||||
}}>
|
}}>
|
||||||
{cluster.thumbnailPath ? (
|
{cluster.thumbnailPath ? (
|
||||||
<Image
|
<Image
|
||||||
src={cluster.thumbnailPath}
|
src={cluster.thumbnailPath}
|
||||||
alt={cluster.name}
|
alt={cluster.name}
|
||||||
|
width="100%"
|
||||||
|
height={180}
|
||||||
style={{
|
style={{
|
||||||
maxWidth: '100%',
|
objectFit: 'cover',
|
||||||
maxHeight: '100%',
|
display: 'block'
|
||||||
objectFit: 'cover'
|
|
||||||
}}
|
}}
|
||||||
preview={false}
|
preview={false}
|
||||||
/>
|
/>
|
||||||
@@ -446,10 +448,11 @@ const FaceExplore: React.FC = () => {
|
|||||||
{clusterPictures.length > 0 ? (
|
{clusterPictures.length > 0 ? (
|
||||||
<div style={{
|
<div style={{
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
gridTemplateColumns: 'repeat(auto-fill, minmax(120px, 1fr))',
|
gridTemplateColumns: 'repeat(auto-fill, minmax(100px, 1fr))',
|
||||||
gap: 16,
|
gap: 12,
|
||||||
maxHeight: 500,
|
maxHeight: 500,
|
||||||
overflowY: 'auto'
|
overflowY: 'auto',
|
||||||
|
padding: '8px'
|
||||||
}}>
|
}}>
|
||||||
{clusterPictures.map(picture => (
|
{clusterPictures.map(picture => (
|
||||||
<div key={picture.id} style={{ textAlign: 'center' }}>
|
<div key={picture.id} style={{ textAlign: 'center' }}>
|
||||||
@@ -459,17 +462,21 @@ const FaceExplore: React.FC = () => {
|
|||||||
src={picture.thumbnailPath || picture.path}
|
src={picture.thumbnailPath || picture.path}
|
||||||
style={{
|
style={{
|
||||||
objectFit: 'cover',
|
objectFit: 'cover',
|
||||||
borderRadius: 8,
|
borderRadius: 6,
|
||||||
border: '1px solid #f0f0f0'
|
border: '1px solid #f0f0f0'
|
||||||
}}
|
}}
|
||||||
|
preview={{
|
||||||
|
src: picture.path
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<div style={{
|
<div style={{
|
||||||
fontSize: '12px',
|
fontSize: '11px',
|
||||||
color: '#666',
|
color: '#666',
|
||||||
marginTop: 4,
|
marginTop: 4,
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
whiteSpace: 'nowrap'
|
whiteSpace: 'nowrap',
|
||||||
|
maxWidth: '100px'
|
||||||
}}>
|
}}>
|
||||||
{picture.name || `图片${picture.id}`}
|
{picture.name || `图片${picture.id}`}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user