Skip to content

Commit

Permalink
Improve Expand Icon Size (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyowen committed Sep 26, 2021
1 parent 30edcf2 commit 6c0b787
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ svg {
text-decoration: none;
}
#version a:hover { text-decoration: underline }
#version svg { font-size: 1.2em !important }
#version .MuiPaper-root:before{ display: none !important }

.small { font-size: 12px; font-weight: normal !important; }
button {
border: none;
Expand All @@ -261,7 +264,6 @@ button {
width: 75px;
height: 75px;
}
#version .MuiPaper-root:before{ display: none !important; }

/* PlayBack Button */
.play-btn {
Expand Down
8 changes: 4 additions & 4 deletions src/components/about.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Button, Accordion, AccordionSummary } from '@mui/material'

import { version } from '../../package.json'
import { Themes, License, AboutOutline, PrivacyPolicy, ExpandMoreIcon } from '../lib/icons.component'
import { Themes, License, AboutOutline, PrivacyPolicy, Expand } from '../lib/icons.component'

const About = ({ properties }: any) => {
const setTheme = (url: string | Boolean) => {
Expand Down Expand Up @@ -31,7 +31,7 @@ const About = ({ properties }: any) => {
</div>

<Accordion className="w-50 card mt-10">
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<AccordionSummary expandIcon={<Expand />}>
<div className="flex w-80">
<Themes />
<p className="ml-10">Themes</p>
Expand All @@ -45,7 +45,7 @@ const About = ({ properties }: any) => {
</Accordion>

<Accordion className="w-50 card mt-10">
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<AccordionSummary expandIcon={<Expand />}>
<div className="flex w-80">
<PrivacyPolicy />
<p className="ml-10">Privacy Policy</p>
Expand All @@ -60,7 +60,7 @@ const About = ({ properties }: any) => {
</Accordion>

<Accordion className="w-50 card mt-10">
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<AccordionSummary expandIcon={<Expand />}>
<div className="flex w-80">
<License />
<p className="ml-10">License</p>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/icons.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function Themes() {
export function PrivacyPolicy() {
return <svg width="1.5em" height="1.5em" viewBox="0 0 48 48"><path d="M6 8.256L24.009 3L42 8.256v10.778A26.316 26.316 0 0 1 24.003 44h0A26.32 26.32 0 0 1 6 19.029V8.256z" stroke="currentColor" strokeWidth="4" strokeLinejoin="round" fill="none" fillRule="evenodd"></path></svg>
}
export function ExpandMoreIcon() {
export function Expand() {
return <svg width="1em" height="1em" viewBox="0 0 24 24"><path d="M12 8l-6 6l1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z" fill="currentColor"></path></svg>
}
export function License() {
Expand Down

0 comments on commit 6c0b787

Please sign in to comment.