Compare commits

..

No commits in common. "70a4ece5bce3ea2fe2cca95f6408f885cddc4ce2" and "104ec7069568b53ec6a9b2e64cc6dadb31890810" have entirely different histories.

2 changed files with 6 additions and 4 deletions

View File

@ -18,8 +18,10 @@ from security import (
app = FastAPI(title="cutt") app = FastAPI(title="cutt")
api_router = APIRouter(prefix="/api") api_router = APIRouter(prefix="/api")
origins = [ origins = [
"https://cutt.0124816.xyz", "*",
"http://localhost:5173", "http://localhost",
"http://localhost:3000",
"http://localhost:8000",
] ]
app.add_middleware( app.add_middleware(

View File

@ -64,13 +64,13 @@ const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
paintOrder={"stroke fill"} paintOrder={"stroke fill"}
fontFamily="monospace" fontFamily="monospace"
> >
{index + 1}. {player.name} {player.name}
</text> </text>
<text <text
key={index} key={index}
x={ x={
4 + 4 +
(4 + Math.max(...players.map((p, _) => p.name.length))) * Math.max(...players.map((p, _) => p.name.length)) *
(barHeight - 1.5 * gap) * (barHeight - 1.5 * gap) *
0.66 0.66
} }