fixed wrong styling on items without title in hstory

This commit is contained in:
Mushka Nikita 2023-04-04 14:10:18 +03:00
parent cbf43dbd53
commit ca8f6616d2

View File

@ -51,8 +51,16 @@ export const HistoryBlockItemList = ({
<StyledHistoryBlockFile isRoom={item.isRoom} key={i}>
<ReactSVG className="icon" src={getInfoPanelItemIcon(item, 24)} />
<div className="item-title">
<span className="name">{item.title}</span>
{item.fileExst && <span className="exst">{item.fileExst}</span>}
{item.title ? (
[
<span className="name">{item.title}</span>,
item.fileExst && (
<span className="exst">{item.fileExst}</span>
),
]
) : (
<span className="name">{item.fileExst}</span>
)}
</div>
<IconButton
className="location-btn"