forked from MinhQuan/PresentCorpo
Fix: Resolve responsive layout issues on news pages
This commit is contained in:
@@ -53,17 +53,21 @@ a:active {
|
||||
.news-filter {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
padding: 8px 16px;
|
||||
margin: 0 10px;
|
||||
margin: 0;
|
||||
background-color: #fff;
|
||||
color: #006241;
|
||||
border: 1px solid #30875f;
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
@@ -191,4 +195,33 @@ a:active {
|
||||
.news-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.news-filter {
|
||||
justify-content: flex-start;
|
||||
margin-left: -20px;
|
||||
margin-right: -20px;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
padding-bottom: 15px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.news-filter::after {
|
||||
content: "";
|
||||
padding-right: 2px; /* Small buffer */
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
font-size: 14px;
|
||||
padding: 6px 16px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.bootstrap-scroll-fix {
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
.bootstrap-scroll-fix::-webkit-scrollbar {
|
||||
display: none; /* Chrome, Safari and Opera */
|
||||
}
|
||||
|
||||
@@ -92,7 +92,9 @@
|
||||
<main class="news-container">
|
||||
<h1 class="page-title">Tin Tức & Sự Kiện</h1>
|
||||
|
||||
<div class="news-filter">
|
||||
<div
|
||||
class="news-filter d-flex flex-nowrap overflow-x-auto pb-2 bootstrap-scroll-fix"
|
||||
>
|
||||
<button class="filter-btn active">Tất Cả</button>
|
||||
<button class="filter-btn">Công Nghệ</button>
|
||||
<button class="filter-btn">Thị Trường</button>
|
||||
@@ -261,15 +263,15 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="news-pagination">
|
||||
<div class="news-pagination my-3 my-sm-4">
|
||||
<!-- Pagination buttons will be generated by JavaScript -->
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="no-results"
|
||||
style="display: none; text-align: center; padding: 2rem; width: 100%"
|
||||
class="no-results py-4 py-sm-5 text-center w-100"
|
||||
style="display: none"
|
||||
>
|
||||
<p>Không có tin tức nào phù hợp với bộ lọc đã chọn.</p>
|
||||
<p class="mb-0">Không có tin tức nào phù hợp với bộ lọc đã chọn.</p>
|
||||
</div>
|
||||
</main>
|
||||
<!-- END OF NEWS CONTENT SECTION -->
|
||||
|
||||
Reference in New Issue
Block a user