mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
radiuses
This commit is contained in:
parent
87112cd985
commit
2f11bb80aa
10 changed files with 21 additions and 18 deletions
|
@ -31,13 +31,13 @@ const HeaderUnconnected: FC<IProps> = ({ username, is_user, showDialog }) => {
|
|||
<Filler />
|
||||
|
||||
<div className={style.plugs}>
|
||||
<Link to="/">flow</Link>
|
||||
<Link to="/examples/image">image</Link>
|
||||
<div onClick={onOpenEditor}>editor</div>
|
||||
<Link to="/">flow</Link>
|
||||
</div>
|
||||
|
||||
{is_user && (
|
||||
<Group horizontal className={style.user_button}>
|
||||
<div>{username}</div>
|
||||
<div className={style.user_avatar} />
|
||||
</Group>
|
||||
)}
|
||||
|
|
|
@ -27,8 +27,8 @@ const Comment: FC<IProps> = ({ comment, is_empty, is_loading, className, photo,
|
|||
{comment.files && comment.files.length > 0 && (
|
||||
<div className={styles.images}>
|
||||
{comment.files.map(file => (
|
||||
<div>
|
||||
<img src={getURL(file.url)} />
|
||||
<div key={file.id}>
|
||||
<img src={getURL(file.url)} alt={file.name} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
@include flexbin(150px, 10px);
|
||||
|
||||
img {
|
||||
border-radius: 4px;
|
||||
border-radius: $radius;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,16 +2,19 @@ import React, { FC } from 'react';
|
|||
import * as styles from './styles.scss';
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
import {Icon} from "~/components/input/Icon";
|
||||
import { Icon } from '~/components/input/Icon';
|
||||
import { INode } from '~/redux/types';
|
||||
|
||||
interface IProps {}
|
||||
interface IProps {
|
||||
node: INode;
|
||||
}
|
||||
|
||||
const NodePanel: FC<IProps> = () => (
|
||||
const NodePanel: FC<IProps> = ({ node: { title, user } }) => (
|
||||
<div className={styles.wrap}>
|
||||
<Group horizontal className={styles.panel}>
|
||||
<Filler>
|
||||
<div className={styles.title}>Node title</div>
|
||||
<div className={styles.name}>~author</div>
|
||||
<div className={styles.title}>{title || '...'}</div>
|
||||
{user && user.username && <div className={styles.name}>~ {user.username}</div>}
|
||||
</Filler>
|
||||
</Group>
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
|
||||
.name {
|
||||
font: $font_12_regular;
|
||||
font: $font_14_regular;
|
||||
color: transparentize(white, 0.5);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue