Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Made non-ready cards horizontal
Browse files Browse the repository at this point in the history
  • Loading branch information
browntj16 committed May 1, 2024
1 parent 6a4f977 commit 5ff2e72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ function CardComponentOnBoard({
children?: ReactNode;
setHover: any
}) {
let className = "card_shape_not_ready overflow-hidden";
if(card.getIsReady()){
className = "card_shape overflow-hidden";
}
return (
<button>
<div className="card_shape overflow-auto" onMouseOver={()=> {
<div className={className} onMouseOver={()=> {
setHover(card);
}}>
<div className="flex aspect-16/9">
Expand Down
12 changes: 10 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,23 @@
}

.card_shape {
overflow: auto;
overflow: hidden;
flex-direction: column;
border-radius: 0.5rem;
border-width: 3px;
border-color: black;
width: 100px;
height: 150px;
}

.card_shape_not_ready {
overflow: hidden;
flex-direction: column;
border-radius: 0.5rem;
border-width: 3px;
border-color: black;
width: 150px;
height: 100px;
}
.hover_card_shape {
overflow: auto;
flex-direction: column;
Expand Down

0 comments on commit 5ff2e72

Please sign in to comment.