mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-28 17:20:13 +02:00
style fixes
This commit is contained in:
@@ -169,6 +169,7 @@ export class CreateNewModal extends Component {
|
||||
item={template}
|
||||
focusable
|
||||
onClick={onTemplateSelect.bind(null, template, false)}
|
||||
hasOptions={false}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
@@ -11,7 +11,8 @@ export function ItemTile({
|
||||
onRemoveBtnClick,
|
||||
onToggleVisibilityBtnClick,
|
||||
focusable,
|
||||
inline
|
||||
inline,
|
||||
hasOptions = true
|
||||
}) {
|
||||
return (
|
||||
<div
|
||||
@@ -58,7 +59,7 @@ export function ItemTile({
|
||||
</div>
|
||||
<div className="flex flex-v-center">
|
||||
{item.img ? (
|
||||
<div>
|
||||
<div class="d-f">
|
||||
<img
|
||||
class="saved-item-tile__img"
|
||||
height="40"
|
||||
@@ -82,30 +83,32 @@ export function ItemTile({
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
<div class="saved-item-tile__meta">
|
||||
<HStack justify="space-between">
|
||||
<div>
|
||||
{item.updatedOn ? (
|
||||
<>
|
||||
Last updated:{' '}
|
||||
<time dateTime={item.updatedOn}>
|
||||
{getHumanDate(item.updatedOn)}
|
||||
</time>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
<div>
|
||||
<Stack gap={1} align="center">
|
||||
<Icon
|
||||
size="16"
|
||||
color="currentColor"
|
||||
name={item.isPublic ? 'eye' : 'eye-striked'}
|
||||
/>
|
||||
{item.isPublic ? 'Public' : ''}
|
||||
</Stack>
|
||||
</div>
|
||||
</HStack>
|
||||
</div>
|
||||
{hasOptions && (
|
||||
<div class="saved-item-tile__meta">
|
||||
<HStack justify="space-between">
|
||||
<div>
|
||||
{item.updatedOn ? (
|
||||
<>
|
||||
Last updated:{' '}
|
||||
<time dateTime={item.updatedOn}>
|
||||
{getHumanDate(item.updatedOn)}
|
||||
</time>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
<div>
|
||||
<Stack gap={1} align="center">
|
||||
<Icon
|
||||
size="16"
|
||||
color="currentColor"
|
||||
name={item.isPublic ? 'eye' : 'eye-striked'}
|
||||
/>
|
||||
{item.isPublic ? 'Public' : ''}
|
||||
</Stack>
|
||||
</div>
|
||||
</HStack>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@@ -1,3 +1,3 @@
|
||||
export const ProBadge = () => {
|
||||
return <div className="pro-badge">PRO</div>;
|
||||
return <div className="badge pro-badge">PRO</div>;
|
||||
};
|
||||
|
@@ -42,5 +42,5 @@ export function Divider(props) {
|
||||
}
|
||||
|
||||
export function BetaTag() {
|
||||
return <span class="beta-tag">Beta</span>;
|
||||
return <span class="badge beta-tag">Beta</span>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user