Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: name column in the dashboad being squashed in some aspect ratios #4193

Merged
merged 3 commits into from
Aug 24, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/pages/DashboardHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</thead>
<tbody>
<tr v-for="(beat, index) in displayedRecords" :key="index" :class="{ 'shadow-box': $root.windowWidth <= 550}">
<td><router-link :to="`/dashboard/${beat.monitorID}`">{{ $root.monitorList[beat.monitorID]?.name }}</router-link></td>
<td class="name-column"><router-link :to="`/dashboard/${beat.monitorID}`">{{ $root.monitorList[beat.monitorID]?.name }}</router-link></td>
<td><Status :status="beat.status" /></td>
<td :class="{ 'border-0':! beat.msg}"><Datetime :value="beat.time" /></td>
<td class="border-0">{{ beat.msg }}</td>
Expand Down Expand Up @@ -218,4 +218,25 @@ table {
overflow-wrap: break-word;
}
}

/* Styles for tablets */
@media (min-width: 576px) and (max-width: 1023px) {
.name-column {
min-width: 100px;
}
}

/* Styles for screens between 1024px and 1440px */
@media (min-width: 1024px) and (max-width: 1439px) {
.name-column {
min-width: 120px;
}
}

/* Styles for screens 1440px and wider */
@media (min-width: 1440px) {
.name-column {
min-width: 200px;
}
}
</style>