fix(filesPanel): refine item info styles

This commit is contained in:
hexxa 2021-11-29 16:31:05 +08:00 committed by Hexxa
parent 7dbda74fcc
commit 78a0155acf
2 changed files with 4 additions and 8 deletions

View file

@ -150,7 +150,7 @@
.theme-default #browser .item-info { .theme-default #browser .item-info {
padding: 1rem; padding: 1rem;
font-size: 1.2rem; font-size: 1.2rem;
border: dashed 1px #7f8c8d; border-top: dashed 1px #7f8c8d;
} }
.theme-default #browser .error { .theme-default #browser .error {

View file

@ -496,18 +496,14 @@ export class FilesPanel extends React.Component<Props, State, {}> {
<Flexbox <Flexbox
children={List([ children={List([
<span> <span>
<b>{`SHA1: `}</b> <div className="label">{`SHA1: `}</div>
<input type="text" readOnly={true} value={`${item.sha1}`} /> <input type="text" readOnly={true} value={`${item.sha1}`} />
</span>, </span>,
<button <button onClick={() => this.generateHash(itemPath)}>
onClick={() => this.generateHash(itemPath)}
className="black-bg white-font margin-l-m"
style={{ display: "inline-block" }}
>
{this.props.msg.pkg.get("refresh")} {this.props.msg.pkg.get("refresh")}
</button>, </button>,
])} ])}
className={`item-info`} className="item-info"
childrenStyles={List([{}, { justifyContent: "flex-end" }])} childrenStyles={List([{}, { justifyContent: "flex-end" }])}
/> />
</div> </div>