mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
Better inbox styling
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="email in emails" :key="email.id">
|
||||
<tr v-for="email in emails" :key="email.id" :class="[email.read ? 'read' : '']">
|
||||
<td><input type="checkbox" /></td>
|
||||
<td>{{email.subject}}</td>
|
||||
<td>{{email.body}}</td>
|
||||
@@ -28,8 +28,14 @@
|
||||
table {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
tr.read {
|
||||
background-color: #EEE;
|
||||
}
|
||||
td {
|
||||
border-bottom: 1px solid black;
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user