Skip to content

Commit

Permalink
style: better show more
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Jun 27, 2024
1 parent 3dfd209 commit 121061e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export const AgentActesRNE: React.FC<{
</p>
{documents.actes.length > 5 ? (
<ShowMore
label={`Voir les ${
documents.actes.length - 5
} documents supplémentaires`}
label={`Voir tous les ${documents.actes.length} documents`}
>
<ActesTable actes={documents.actes} />
</ShowMore>
Expand Down
2 changes: 1 addition & 1 deletion components-ui/show-more/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Design point of attention:
export default function ShowMore(props: IProps) {
const [isExpanded, setIsExpanded] = useState(false);
const id = useId();
const collapsedHeight = props.collapsedHeight ?? '20rem';
const collapsedHeight = props.collapsedHeight ?? '25rem';
return (
<div
className={isExpanded ? styles['expanded'] : styles['collapsed']}
Expand Down

0 comments on commit 121061e

Please sign in to comment.