@@ -29,7 +29,7 @@
field="resource.name"
header="Name"
sortable
- style="min-width: 200px"
+ :style="columnStyle"
:pt="{
headerCell: {
style: { backgroundColor: 'var(--primary-color)', color: 'var(--primary-text)' },
@@ -54,7 +54,7 @@
field="resource.description"
header="Description"
sortable
- style="min-width: 200px"
+ :style="columnStyle"
:pt="{
headerCell: {
style: { backgroundColor: 'var(--primary-color)', color: 'var(--primary-text)' },
@@ -68,7 +68,7 @@
field="resource.expiration_date"
header="Expiration Date"
sortable
- style="min-width: 200px"
+ :style="columnStyle"
:pt="{
headerCell: {
style: { backgroundColor: 'var(--primary-color)', color: 'var(--primary-text)' },
@@ -211,6 +211,12 @@ export default {
},
},
+ computed: {
+ columnStyle() {
+ return window.innerWidth <= 768 ? {} : { minWidth: '200px' };
+ },
+ },
+
data() {
return {
agentToDelete: null as Agent | null,
@@ -287,4 +293,19 @@ export default {
background-color: rgba(255, 255, 255, 0.9);
pointer-events: none;
}
+
+@media (max-width: 768px) {
+ .p-column {
+ min-width: auto !important;
+ white-space: normal;
+ }
+
+ .p-datatable {
+ font-size: 0.9rem;
+ }
+
+ .p-column-header-content {
+ text-align: left;
+ }
+}
\ No newline at end of file
diff --git a/src/ui/ManagementPortal/components/ApiStatusCard.vue b/src/ui/ManagementPortal/components/ApiStatusCard.vue
index 207e51b811..f939b970f7 100644
--- a/src/ui/ManagementPortal/components/ApiStatusCard.vue
+++ b/src/ui/ManagementPortal/components/ApiStatusCard.vue
@@ -26,7 +26,7 @@