fixed wrong styling on items without title in hstory
This commit is contained in:
parent
cbf43dbd53
commit
ca8f6616d2
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user