Skip to content

Commit

Permalink
Increase size of chracter cells, disable bolding #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Transfusion committed Mar 7, 2021
1 parent 65203ff commit 3cfca8f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/ComponentsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function ComponentsPage(props: {
}}
style={{
color: darkMode ? "white" : "black",
fontWeight: "bold",
// fontWeight: "bold",
}}
outerElementType={outerElementType}
// outerRef={listOuterRef}
Expand All @@ -337,7 +337,7 @@ function ComponentsPage(props: {
handleRadicalClick,
}}
itemCount={arrayified.length}
itemSize={40}
itemSize={45}
width={width}
>
{ComponentPickerRow}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComponentsScrollComponents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const HeaderRow = styled.div`
`;

const NormalRow = styled.div`
font-size: 1.4em;
font-size: 1.7em;
// padding-left: 5px;
// padding-right: 5px;
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/components/IndividualComponentCell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const IndividualComponentCell = withTheme(styled("div") <{
darkMode?: boolean;
characterVariantLocales?: string;
}>`
width: 27px;
height: 27px;
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ResultsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function ResultsPage(props: {
}}
style={{
color: darkMode ? "white" : "black",
fontWeight: "bold",
// fontWeight: "bold",
}}
outerElementType={outerElementType}
// outerRef={listOuterRef}
Expand All @@ -199,7 +199,7 @@ function ResultsPage(props: {
handleRadicalClick,
}}
itemCount={arrayified.length}
itemSize={40}
itemSize={45}
width={width}
>
{ComponentPickerRow}
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function useWindowDimensions() {
}

export const getRadicalsPerRow = (windowWidth: number): number => {
return Math.trunc(windowWidth / 40);
return Math.trunc(windowWidth / 50);
};

export function isCJK(idsChar: string) {
Expand Down

0 comments on commit 3cfca8f

Please sign in to comment.