mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-02 11:30:22 +02:00
itemtile: align files mode icon
This commit is contained in:
@@ -53,17 +53,23 @@ export function ItemTile({
|
|||||||
) : null}
|
) : null}
|
||||||
<h3 class="saved-item-tile__title">{item.title}</h3>
|
<h3 class="saved-item-tile__title">{item.title}</h3>
|
||||||
{item.files ? (
|
{item.files ? (
|
||||||
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
<div
|
||||||
<path
|
class="ml-1 flex-shrink-0 hint--left"
|
||||||
fill="currentColor"
|
aria-label="Files mode creation"
|
||||||
d="M15,7H20.5L15,1.5V7M8,0H16L22,6V18A2,2 0 0,1 20,20H8C6.89,20 6,19.1 6,18V2A2,2 0 0,1 8,0M4,4V22H20V24H4A2,2 0 0,1 2,22V4H4Z"
|
>
|
||||||
/>
|
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
|
||||||
</svg>
|
<path
|
||||||
|
fill="currentColor"
|
||||||
|
d="M15,7H20.5L15,1.5V7M8,0H16L22,6V18A2,2 0 0,1 20,20H8C6.89,20 6,19.1 6,18V2A2,2 0 0,1 8,0M4,4V22H20V24H4A2,2 0 0,1 2,22V4H4Z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
{item.updatedOn ? (
|
{item.updatedOn ? (
|
||||||
<div class="saved-item-tile__meta">
|
<div class="saved-item-tile__meta">
|
||||||
Last updated: {getHumanDate(item.updatedOn)}
|
Last updated:{' '}
|
||||||
|
<time dateTime={item.updatedOn}>{getHumanDate(item.updatedOn)}</time>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user