Skip to content

Commit

Permalink
minor fixes (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzhou-bit authored Jul 9, 2024
1 parent 3e5f606 commit effdddb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components-shared/Dropdowns/ColorDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ColorDropdown = ({
Object.values(CARD_COLOR_KEYS).forEach(color => {
let className = 'item ' + color;
if (selectedColor === color) {
className += ' selected';
className += ' selected-color';
}
colorList = [
...colorList,
Expand Down
2 changes: 1 addition & 1 deletion src/components-shared/Dropdowns/ColorDropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
}

.selected {
.selected-color {
border: 2px solid #5bc5ff;
}
}
1 change: 1 addition & 0 deletions src/components/Card/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ $scrollbar-width: 17px;
-webkit-transition: 0.4s;
transition: 0.4s;
overflow: hidden;
background-color: white;

display: flex;
flex-flow: column nowrap;
Expand Down
4 changes: 1 addition & 3 deletions src/components/Card/LibraryContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ const LibraryContent = ({
});

const condensedStyle = {
backgroundColor: 'white',
minHeight: '60px',
maxHeight: '80px',
height: '80px',
};

const expandedStyle = {
backgroundColor: 'white',
minHeight: '80px',
maxHeight: '50vh',
height: '35vh',
height: contentRef ? contentRef.current?.scrollHeight + 31 : null,
};

return (
Expand Down
1 change: 0 additions & 1 deletion src/components/Library/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ $search-text-right-offset: $search-count-offset + 80px;
border: 1px solid #353535;
border-radius: 2px;
&:hover {
background-color: #CCD6E3;
box-shadow: 0 0 0 3px #DBE2EB;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/constants/dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const NEW_CARD_POSITION = {
export const NEW_CARD_OFFSET = 3 * GRID_SIZE;

export const NEW_CARD_SIZE = {
width: 16 * GRID_SIZE,
height: 12 * GRID_SIZE,
width: 20 * GRID_SIZE,
height: 20 * GRID_SIZE,
};

export const MIN_CARD_SIZE = {
Expand Down

0 comments on commit effdddb

Please sign in to comment.