Skip to content

Commit

Permalink
fix: removed max-height of card container
Browse files Browse the repository at this point in the history
  • Loading branch information
syam babu committed Jan 30, 2024
1 parent 5268706 commit 9bd132d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/results/Results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import Card from '../card/Card';
import './results.css';

const Results = () => {
const { data, displayType } = useContext(WidgetContext);
const screenHeight =
displayType === displayTypes.DESKTOP ? window.screen.height - 275 : window.screen.height - 350;
const { data } = useContext(WidgetContext);

return (
<ul className="card-container" style={{ maxHeight: screenHeight }}>
<ul className="card-container">
{data?.length > 0 &&
data.map((item, index) => (
<Card
Expand Down

0 comments on commit 9bd132d

Please sign in to comment.