Skip to content

Commit

Permalink
feat: improve layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalaforge committed Mar 30, 2024
1 parent 8561653 commit 108c775
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
26 changes: 13 additions & 13 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ export default defineConfig({
ru: 'Руководство'
}
},
{
label: 'Leaderboard',
autogenerate: {
directory: 'leaderboard',
collapsed: true
},
translations: {
es: 'Leaderboard',
fr: 'Leaderboard',
pt: 'Leaderboard',
ru: 'Leaderboard'
}
},
// {
// label: 'Leaderboard',
// autogenerate: {
// directory: 'leaderboard',
// collapsed: true
// },
// translations: {
// es: 'Leaderboard',
// fr: 'Leaderboard',
// pt: 'Leaderboard',
// ru: 'Leaderboard'
// }
// },
{
label: 'Challenges',
autogenerate: {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/leaderboard/LeaderboardAnswer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
<style>
.box {
display: grid;
display: flex;
flex-wrap: wrap;
justify-items: center;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-top: 2rem;
}
Expand Down
6 changes: 3 additions & 3 deletions docs/src/components/leaderboard/LeaderboardChallenge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@

<style>
.box {
display: grid;
display: flex;
flex-wrap: wrap;
justify-items: center;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
gap: 1rem;
margin-top: 2rem;
}
</style>
6 changes: 3 additions & 3 deletions docs/src/components/leaderboard/LeaderboardCommit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@

<style>
.box {
display: grid;
display: flex;
flex-wrap: wrap;
justify-items: center;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
gap: 1rem;
margin-top: 2rem;
}
</style>
7 changes: 1 addition & 6 deletions docs/src/components/leaderboard/UserBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
border: 1px solid var(--sl-color-gray-3);
border-radius: 5px;
align-items: center;
width: 100%;
max-width: 300px;
justify-content: space-between;
width: 100%;
}
.user-info {
Expand All @@ -63,10 +62,6 @@
font-size: 24px;
color: red;
line-height: 24px;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.count {
Expand Down

0 comments on commit 108c775

Please sign in to comment.