1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Fix a few tiny glitches in frontend dark mode as well as SDVX/Museca header duplication glitch.

This commit is contained in:
Jennifer Taylor 2023-03-19 19:18:00 +00:00
parent 383de2a070
commit 19566e4bbe
7 changed files with 8 additions and 12 deletions

View File

@ -34,7 +34,7 @@ config = Config()
# Allow cache-busting of entire frontend for major changes such as react upgrades.
FRONTEND_CACHE_BUST: str = "site.1.2.react.16.14"
FRONTEND_CACHE_BUST: str = "site.1.3.react.16.14"
@app.before_request

View File

@ -210,7 +210,7 @@ var network_records = createReactClass({
if (paginate && curpage != this.state.subtab) { return null; }
return (
<tr key={(-songid).toString()} className="header">
<tr key={songid.toString()} className="header">
<td className="subheader">{
!paginate ? this.state.versions[-songid] : "Song / Artist / Difficulties"
}</td>

View File

@ -218,7 +218,7 @@ var network_records = createReactClass({
if (paginate && curpage != this.state.subtab) { return null; }
return (
<tr key={((-songid) - 1).toString()} className="header">
<tr key={songid.toString()} className="header">
<td className="subheader">{
!paginate ? this.state.versions[(-songid) - 1] : "Song / Artist / Difficulties"
}</td>
@ -431,7 +431,7 @@ var network_records = createReactClass({
<div className="section">
<table className="list records">
<thead>
<tr>
<tr key={"songheader"}>
<th className="subheader">Song / Artist / Difficulties</th>
<th className="subheader">{ 'Green (\u7FE0)' }</th>
<th className="subheader">{ 'Orange (\u6A59)' }</th>

View File

@ -213,7 +213,7 @@ var network_records = createReactClass({
if (paginate && curpage != this.state.subtab) { return null; }
return (
<tr key={((-songid) - 1).toString()} className="header">
<tr key={songid.toString()} className="header">
<td className="subheader">{
!paginate ? this.state.versions[(-songid) - 1] : "Song / Artist / Difficulties"
}</td>

View File

@ -231,7 +231,7 @@ var network_records = createReactClass({
if (paginate && curpage != this.state.subtab) { return null; }
return (
<tr key={((-songid) - 1).toString()} className="header">
<tr key={songid.toString()} className="header">
<td className="subheader">{
!paginate ? this.state.versions[(-songid) - 1] : "Song / Artist / Difficulties"
}</td>

View File

@ -211,7 +211,7 @@ var network_records = createReactClass({
if (paginate && curpage != this.state.subtab) { return null; }
return (
<tr key={((-songid) - 1).toString()} className="header">
<tr key={songid.toString()} className="header">
<td className="subheader">{
!paginate ? this.state.versions[(-songid) - 1] : "Song / Artist / Difficulties"
}</td>

View File

@ -63,7 +63,7 @@ table.list tbody tr:nth-child(even) td {
}
table td.subheader {
background-color: #1f1f1f ! important;
background-color: #192021 ! important;
font-weight: bold;
}
@ -116,10 +116,6 @@ table.list input[type="checkbox"], table.add input[type="checkbox"] {
margin: 0px;
}
td.subheader {
color: 121212;
}
table.events div.circle {
width: 16px;
height: 16px;