Skip to content

Commit 6f1acb1

Browse files
committed
improve readability of time lists
1 parent f847dc4 commit 6f1acb1

5 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/components/MapDetails.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
label: 'Server',
5050
data: 'server',
5151
width: '30%',
52-
alignmentClasses: 'text-left'
52+
classes: 'text-sm text-gray-400',
53+
alignmentClasses: 'text-left text-gray-300'
5354
},
5455
{
5556
label: 'Date',

src/components/PlayerDetails.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@
170170
label: 'Server',
171171
data: 'server',
172172
width: '30%',
173-
alignmentClasses: 'text-left'
173+
classes: 'text-sm text-gray-400',
174+
alignmentClasses: 'text-left text-gray-300'
174175
},
175176
{
176177
label: 'Date',

src/components/RecentTimes.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,23 @@
4343
label: 'Player',
4444
data: 'name',
4545
width:'20%',
46+
classes: 'font-semibold',
4647
alignmentClasses: 'text-left',
4748
link: timeLinks.playerLink
4849
},
4950
{
5051
label: 'Map',
5152
data: 'map',
5253
width: '20%',
54+
classes: 'text-gray-200',
5355
alignmentClasses: 'text-right justify-end md:justify-start md:text-left',
5456
link: timeLinks.mapLink
5557
},
5658
{
5759
label: 'Server',
5860
data: 'server',
5961
width: '20%',
62+
classes: 'text-sm text-gray-400',
6063
alignmentClasses: 'text-right justify-end md:justify-start md:text-left text-gray-300'
6164
},
6265
{

src/components/TimesListHeading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
<template>
15-
<div class="grid os-grid-cols-auto p-1 px-1 bg-main-900 fw-700 text-xs py-1.5 text-gray-200">
15+
<div class="grid os-grid-cols-auto px-1 bg-main-900 fw-700 text-xs pt-1.5 pb-2 text-gray-200">
1616
<div v-for="(col,index) in props.cols" :key="index" class="grid-col px-1.5" :class="col.alignmentClasses">
1717
<div :class="col.alignmentClasses">{{ col.label }}</div>
1818
</div>

src/components/TimesListItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
'bg-main-500':
117117
'bg-main-600 odd:bg-main-700 hover:border-gray-400 border-transparent border-gray-400 hover:border-gray-200'
118118
">
119-
<div class="grid os-grid-cols-auto p-1 px-1
120-
cursor-pointer transition-[padding border-color background-color] duration-200 hover:pb-2 relative"
119+
<div class="grid os-grid-cols-auto p-1.5 px-1
120+
cursor-pointer transition-[padding border-color background-color] duration-200 hover:pb-2.5 relative"
121121
:class="showDetails ?
122122
'pb-2' : ''"
123123
@click="toggleDetails()"

0 commit comments

Comments
 (0)