add overflow-x:auto to fix table when on mobile display

This commit is contained in:
cowrie committed 2026-11-14 20:53:28 +08:00
1 parent 6d882b78d1
commit 792d97712c
2 files changed
+136 -99

No files matched your search

+11 -1
View File
@@ -62,12 +62,20 @@
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
gap: 10px;
/* Adds space between the link and the button */
}
.file-item a {
color: #333;
text-decoration: none;
font-weight: 500;
/* These 3 lines fix the text overflow */
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
/* Allow the link to shrink so the button doesn't get pushed out */
flex: 1;
}
.file-item a:hover {
@@ -78,6 +86,8 @@
.file-item button {
padding: 2px 8px;
font-size: 12px;
/* Prevent the button from shrinking or wrapping */
flex-shrink: 0;
}
</style>
</head>
@@ -130,7 +140,7 @@
<button class="btn btn-primary btn-xs" onclick="openAddModal()"><i class="fa fa-plus"></i>
Tambah Penelitian</button>
</header>
<div class="panel-body">
<div class="panel-body" style="overflow-x: auto;">
<table id="tablePenelitian" class="table table-striped table-bordered dt-responsive nowrap"
style="width:100%">
<thead>