Skip to content

Commit eb41d17

Browse files
authored
Merge pull request #32 from UZ9/ryder/fix-icon-padding
Fix icon padding of sidebar
2 parents 5a737a4 + 533400f commit eb41d17

7 files changed

Lines changed: 22 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
5353
<tr>
5454
<td align="center"><a href="https://github.com/lyangji1011"><img src="https://avatars.githubusercontent.com/u/70451868?v=4" width="100px;" alt=""/><br /><sub><b>Lauren Ji</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=lyangji1011" title="Code">💻</a> <a href="https://github.com/csvistool/visualization-tool/issues?q=author%3Alyangji1011" title="Bug reports">🐛</a></td>
5555
<td align="center"><a href="https://github.com/m-skaan"><img src="https://avatars.githubusercontent.com/u/93020882?v=4" width="100px;" alt=""/><br /><sub><b>Muskaan Gupta</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=m-skaan" title="Code">💻</a></td>
56-
<td align="center"><a href="https://github.com/VineethSendilraj"><img src="https://avatars.githubusercontent.com/u/66220022?v=4" width="100px;" alt=""/><br /><sub><b>Vineeth Sendilraj</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Code">💻</a><a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Design">🎨</a></td>
56+
<td align="center"><a href="https://github.com/VineethSendilraj"><img src="https://avatars.githubusercontent.com/u/66220022?v=4" width="100px;" alt=""/><br /><sub><b>Vineeth Sendilraj</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Code">💻</a> <a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Design">🎨</a></td>
5757
<td align="center"><a href="https://github.com/PureTrippH"><img src="https://avatars.githubusercontent.com/u/20043396?v=4" width="100px;" alt=""/><br /><sub><b>Tripp Hanley</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=PureTrippH" title="Code">💻</a></td>
5858
</tr>
5959
</table>

src/AlgoList.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export const algoMap = {
5858
Floyd: ['Floyd-Warshall', algos.Floyd],
5959
};
6060

61-
const aprilFoolsAlgos = [
62-
'LVA',
63-
'NonLinearProbing',
64-
];
61+
const aprilFoolsAlgos = ['LVA', 'NonLinearProbing'];
6562
export const algoList = [
6663
...(isAprilFools ? aprilFoolsAlgos : []),
6764
'Lists',

src/algo/Hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export default class Hash extends Algorithm {
355355
const labelID1 = this.nextIndex++;
356356
const labelID2 = this.nextIndex++;
357357
const highlightID = this.nextIndex++;
358-
const index = ((parseInt(input) % this.table_size) + this.table_size) % this.table_size;
358+
const index = ((parseInt(input) % this.table_size) + this.table_size) % this.table_size;
359359
this.currHash = parseInt(input);
360360

361361
this.cmd(

src/components/HomeScreen/SearchFilter.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ const SearchFilter = React.memo(function SearchFilter({ filteredAlgoList }) {
66
return filteredAlgoList.length ? (
77
filteredAlgoList.map((name, idx) =>
88
name === '---' ? (
9-
<hr key={`divider-${idx}`} style={{ width: '90%', border: '3px solid #ccc', margin: '10px auto', marginBottom: '2%', marginRight: '2%' }} />
9+
<hr
10+
key={`divider-${idx}`}
11+
style={{
12+
width: '90%',
13+
border: '3px solid #ccc',
14+
margin: '10px auto',
15+
marginBottom: '2%',
16+
marginRight: '2%',
17+
}}
18+
/>
1019
) : (
1120
algoMap[name] && (
1221
<Link to={`/${name}`} key={idx} style={{ textDecoration: 'none' }}>

src/css/AlgoScreen.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ input[type='checkbox'] {
652652
/* Modal Tabs */
653653
.modal-tabs {
654654
display: flex;
655-
gap: 20px;
655+
gap: 5px;
656656
margin-bottom: 20px;
657657
border-bottom: 1px solid var(--border);
658658
padding-bottom: 10px;
@@ -667,6 +667,7 @@ input[type='checkbox'] {
667667
font-size: 16px;
668668
cursor: pointer;
669669
transition: all 0.2s ease;
670+
display: flex;
670671
border-bottom: 2px solid transparent;
671672
}
672673

@@ -711,6 +712,10 @@ input[type='checkbox'] {
711712
padding: 0;
712713
}
713714

715+
.tab-text {
716+
padding-left: 0.3rem;
717+
}
718+
714719
.code-toggle-button:hover {
715720
transform: scale(1.1);
716721
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

src/modals/InfoModals.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ const Modals = {
8080
<li>The best case is when we have a sorted array (terminates if no swaps are made)</li>
8181
<li>
8282
The worst case is when we have a reverse sorted array (we perform
83-
<span className="equation">
84-
n + (n - 1) + (n - 2) + ... = n²
85-
</span>
83+
<span className="equation">n + (n - 1) + (n - 2) + ... = n²</span>
8684
comparisons)
8785
</li>
8886
</ul>
@@ -120,9 +118,7 @@ const Modals = {
120118
<li>The best case is when we have a sorted array (terminates if no swaps are made)</li>
121119
<li>
122120
The worst case is when we have a reverse sorted array (we perform
123-
<span className="equation">
124-
n + (n - 1) + (n - 2) + ... = n²
125-
</span>
121+
<span className="equation">n + (n - 1) + (n - 2) + ... = n²</span>
126122
comparisons)
127123
</li>
128124
<li>
@@ -151,9 +147,7 @@ const Modals = {
151147
<li>The best case is when we have a sorted array (terminates if no swaps are made)</li>
152148
<li>
153149
The worst case is when we have a reverse sorted array (we perform
154-
<span className="equation">
155-
n + (n - 1) + (n - 2) + ... = n²
156-
</span>
150+
<span className="equation">n + (n - 1) + (n - 2) + ... = n²</span>
157151
comparisons)
158152
</li>
159153
</ul>

src/screens/HomeScreen.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ const HomeScreen = ({ theme, toggleTheme }) => {
9191
path="*"
9292
element={
9393
<>
94-
<FinalsBanner></FinalsBanner>
9594
<div className="outer-flex">
9695
{/* Side Navigator*/}
9796
<div className="side-panel">

0 commit comments

Comments
 (0)