FileCard updatd
This commit is contained in:
1 parent
8331af7aaa
commit
70094eab73
4 files changed
+19
-26
No files matched your search
@@ -16,10 +16,8 @@ export const Signature: React.FC<SignatureProps> = props => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Tooltip overlayClassName={'hudozka'} placement="left" trigger={['hover', 'click']} overlay={content}>
|
||||||
<Tooltip overlayClassName={'hudozka'} placement="left" trigger={['hover', 'click']} overlay={content}>
|
<FiShield className={s.secure} size={20} />
|
||||||
<FiShield className={s.secure} size={20} />
|
</Tooltip>
|
||||||
</Tooltip>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
.file {
|
.file {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
grid-template-columns: 100px auto 150px;
|
||||||
|
gap: var(--size-m);
|
||||||
|
|
||||||
margin-bottom: var(--size-l);
|
margin-bottom: var(--size-l);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9,13 +12,7 @@
|
|||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
|
||||||
margin-left: var(--size-m);
|
|
||||||
flex-grow: 7;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
flex-grow: 1;
|
|
||||||
font-size: var(--font-size-second);
|
font-size: var(--font-size-second);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
@@ -22,8 +22,8 @@ export const FileCard: React.FC<FileCardProps> = props => {
|
|||||||
className={s.image}
|
className={s.image}
|
||||||
loader={({ src, width, quality }) => {
|
loader={({ src, width, quality }) => {
|
||||||
return getResizedUrl(src, {
|
return getResizedUrl(src, {
|
||||||
width: 200,
|
width,
|
||||||
height: 200,
|
height: width,
|
||||||
n: 1,
|
n: 1,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
@@ -35,17 +35,13 @@ export const FileCard: React.FC<FileCardProps> = props => {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div className={s.name}>
|
<div>
|
||||||
<span style={{
|
{!props.sign ? null : (
|
||||||
display: 'flex',
|
<Signature
|
||||||
}}>
|
{...props.sign}
|
||||||
{!props.sign ? null : (
|
/>
|
||||||
<Signature
|
)}
|
||||||
{...props.sign}
|
<a href={props.url}>{props.title}</a>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<a href={props.url}>{props.title}</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={s.info}>
|
<div className={s.info}>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
.secure {
|
.secure {
|
||||||
padding-right: 10px;
|
padding-right: var(--size-xs);
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.signature{
|
.signature{
|
||||||
|
|||||||
Reference in new issue
Block a user