frontend: add hosting tablr scroll indicator
This commit is contained in:
parent
ed5747e69b
commit
9a192c9b61
@ -43,12 +43,23 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scroll-instruction {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
body {
|
body {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 375px) {
|
||||||
|
.scroll-instruction {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Header Style */
|
/* Header Style */
|
||||||
header {
|
header {
|
||||||
background-color: #a41e34; /* Christmas red */
|
background-color: #a41e34; /* Christmas red */
|
||||||
@ -103,6 +114,7 @@ footer {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.table-wrapper {
|
.table-wrapper {
|
||||||
width: 100%; /* Full width of the viewport */
|
width: 100%; /* Full width of the viewport */
|
||||||
text-align: center; /* Center the text (optional for non-text elements) */
|
text-align: center; /* Center the text (optional for non-text elements) */
|
||||||
@ -115,7 +127,6 @@ table {
|
|||||||
max-width: 100%; /* Prevents exceeding the parent's width */
|
max-width: 100%; /* Prevents exceeding the parent's width */
|
||||||
color: black;
|
color: black;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
font-size: 1em;
|
|
||||||
text-align: center; /* Centered text in table */
|
text-align: center; /* Centered text in table */
|
||||||
margin: 0 auto; /* Center the table within the wrapper */
|
margin: 0 auto; /* Center the table within the wrapper */
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,7 @@ function Hosting() {
|
|||||||
{loading && <div>Loading...</div>}
|
{loading && <div>Loading...</div>}
|
||||||
{error && <div>Error</div>}
|
{error && <div>Error</div>}
|
||||||
{data && (
|
{data && (
|
||||||
<div className="table-wrapper">
|
<div className="table-wrapper scroll-indicator">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -72,6 +72,7 @@ function Hosting() {
|
|||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<p className="scroll-instruction">Таблицу можно скроллить</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</CenteredContainer>
|
</CenteredContainer>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user