Unknown char fixes, removed unnecesary files, style fixes/changes

This commit is contained in:
mrfry 2021-04-21 12:05:16 +02:00
parent 9c194277b3
commit 3739153e95
10 changed files with 65 additions and 44 deletions

View file

@ -37,7 +37,7 @@ export default function TodoCard(props) {
<div className={`${voted && styles.voted}`}> <div className={`${voted && styles.voted}`}>
<div>{`Szavazatok: ${votes.length}`}</div> <div>{`Szavazatok: ${votes.length}`}</div>
</div> </div>
<div>{`Neh<EFBFBD>zs<EFBFBD>g: ${points}`}</div> <div>{`Nehézség: ${points}`}</div>
</div> </div>
</div> </div>
) )

View file

@ -6,6 +6,8 @@ export default function TodoRow(props) {
const { categories, userId, onClick } = props const { categories, userId, onClick } = props
const { name, category, votes, id, group } = props.rowData const { name, category, votes, id, group } = props.rowData
const voted = votes.includes(userId) const voted = votes.includes(userId)
const borderColor =
categories[category].borderColor || categories[category].color
return ( return (
<div <div
@ -14,7 +16,8 @@ export default function TodoRow(props) {
}} }}
className={styles.row} className={styles.row}
style={{ style={{
border: `2px dashed ${categories[category].color || 'white'}`, border: `2px dashed ${borderColor || 'white'}`,
borderRadius: '3px',
}} }}
> >
<div className={styles.id}>{`#${id}`}</div> <div className={styles.id}>{`#${id}`}</div>

View file

@ -20,6 +20,7 @@ export default function TodoBoard(props) {
return ( return (
<div className={styles.container} key={key}> <div className={styles.container} key={key}>
<div className={styles.title}>{table.name}</div> <div className={styles.title}>{table.name}</div>
<div className={styles.scroll}>
{tableCards.map((card, i) => { {tableCards.map((card, i) => {
const shouldHide = const shouldHide =
card.state !== key || card.state !== key ||
@ -44,6 +45,7 @@ export default function TodoBoard(props) {
) )
})} })}
</div> </div>
</div>
) )
})} })}
</div> </div>

View file

@ -20,3 +20,9 @@
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
} }
.scroll {
max-height: 500px;
overflow-y: auto;
overflow-x: hidden;
}

View file

@ -24,7 +24,6 @@ export default function Todos() {
const [selectedGroup, setSelectedGroup] = useState(null) const [selectedGroup, setSelectedGroup] = useState(null)
useEffect(() => { useEffect(() => {
console.info('Fetching todos')
fetch(`${constants.apiUrl}todos`, { fetch(`${constants.apiUrl}todos`, {
credentials: 'include', credentials: 'include',
}) })

View file

@ -461,7 +461,7 @@ select:hover {
.description { .description {
padding-top: 1px; padding-top: 1px;
padding-bottom: 10px; padding-bottom: 5px;
font-size: inherit; font-size: inherit;
color: inherit; color: inherit;
text-align: center; text-align: center;

View file

@ -107,13 +107,23 @@ export default function AllQuestions({ router }) {
</div> </div>
<Sleep /> <Sleep />
<div className={'description'}> <div className={'description'}>
<p>
Ezen az oldalon tudsz manuálisan keresni a kérdések és a tárgyak Ezen az oldalon tudsz manuálisan keresni a kérdések és a tárgyak
között, vagy ellenőrizni, hogy egy adott tárgy szerepel-e a között, vagy ellenőrizni, hogy egy adott tárgy szerepel-e a kérdés-
kérdés- és tárgyadatbázisban. Ezen kívül a kérdéseket le is és tárgyadatbázisban. Ezen kívül a kérdéseket le is töltheted
töltheted offline használatra. (txt formátumban) offline használatra. (txt formátumban)
</p>
</div> </div>
<center>
<div className={`buttonContainer ${styles.dataEditor}`}>
<div
onClick={() => {
window.open(`${constants.siteUrl}dataeditor`, '_blank')
}}
>
Kérdés szerkesztő
<ExternalLinkIcon size={15} />
</div>
</div>
</center>
<div className={'selectContainer'}> <div className={'selectContainer'}>
<select <select
defaultValue={-1} defaultValue={-1}

View file

@ -20,5 +20,10 @@
.info { .info {
text-align: center; text-align: center;
font-style: italic; font-style: italic;
padding-top: 25px; padding-top: 5px;
}
.dataEditor {
margin-bottom: 25px;
width: 25%;
} }

View file

@ -65,7 +65,7 @@ export default function contribute() {
{Object.keys(repos.repos).map((key) => { {Object.keys(repos.repos).map((key) => {
let repo = repos.repos[key] let repo = repos.repos[key]
return ( return (
<div> <div key={key}>
<ul> <ul>
<li> <li>
<a key={key} href={repo.href}> <a key={key} href={repo.href}>
@ -78,7 +78,6 @@ export default function contribute() {
})} })}
</div> </div>
<div <div
style={{ float: 'left' }}
style={{ textAlign: 'right', marginRight: '100px', marginTop: '25px' }} style={{ textAlign: 'right', marginRight: '100px', marginTop: '25px' }}
> >
<img <img

View file

@ -95,7 +95,7 @@ function FAQSection() {
<b>Gombok, %-ok, számok;</b> <b>Gombok, %-ok, számok;</b>
<br /> <br />
<img <img
style={{ maxWidth: '100%' }} style={{ maxWidth: '90%' }}
src="img/6.png" src="img/6.png"
alt="img" alt="img"
className={'manual_img'} className={'manual_img'}
@ -164,7 +164,7 @@ function WebsiteSaveSection() {
</p> </p>
<center> <center>
<img <img
style={{ maxWidth: '100%' }} style={{ maxWidth: '90%' }}
src="img/websitesave.png" src="img/websitesave.png"
alt="img" alt="img"
className={'manual_img'} className={'manual_img'}
@ -249,14 +249,11 @@ export default function FAQ({ router }) {
} }
} }
useEffect( useEffect(() => {
() => {
if (router.query.tab) { if (router.query.tab) {
setCurrPage(pages[router.query.tab]) setCurrPage(pages[router.query.tab])
} }
}, }, [router.query.tab])
[router.query.tab]
)
return ( return (
<div> <div>