try suppressing subsequent list items
This commit is contained in:
parent
85322ef16d
commit
fa88bad32f
@ -30,10 +30,12 @@ const EditHistoryLatest: React.FunctionComponent<EditHistoryLatestProps> = (prop
|
||||
|
||||
return (
|
||||
<>
|
||||
<ul className="edit-history-list"
|
||||
<li key={`${history[0].revision_id}`} className="edit-history-list-element">
|
||||
<BuildingEditLatest historyEntry={history[0]} />
|
||||
</li>
|
||||
<ul className="edit-history-first" id="first-only">
|
||||
{history && history.map(entry => (
|
||||
<li key={`${entry.revision_id}`} className="edit-history-list-element">
|
||||
<BuildingEditLatest historyEntry={entry} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</>
|
||||
);
|
||||
|
@ -6,3 +6,16 @@
|
||||
list-style: none;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
ul[id="first-only"] li{
|
||||
color: black;
|
||||
display: none;
|
||||
position: absolute;
|
||||
font-size: 30px;
|
||||
}
|
||||
ul[id="first-only"] li:first-of-type {
|
||||
color: black;
|
||||
display: block;
|
||||
position: absolute;
|
||||
font-size: 30px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user