mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 08:55:50 +00:00
Update table.css
This commit is contained in:
@@ -704,8 +704,9 @@ th.amily2-menu-open .amily2-header-text {
|
|||||||
border: 1px solid var(--am2-table-border, rgba(255, 255, 255, 0.25));
|
border: 1px solid var(--am2-table-border, rgba(255, 255, 255, 0.25));
|
||||||
padding: 5px 8px;
|
padding: 5px 8px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: nowrap; /* Prevent text from wrapping in cells */
|
/* white-space: nowrap; will be applied via media query for mobile only */
|
||||||
}
|
}
|
||||||
|
|
||||||
.amily2-chat-table th {
|
.amily2-chat-table th {
|
||||||
background-color: var(--am2-header-bg, rgba(255, 255, 255, 0.1));
|
background-color: var(--am2-header-bg, rgba(255, 255, 255, 0.1));
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -752,10 +753,15 @@ th.amily2-menu-open .amily2-header-text {
|
|||||||
#amily2-chat-table-container {
|
#amily2-chat-table-container {
|
||||||
padding: 5px; /* Reduce container padding on mobile */
|
padding: 5px; /* Reduce container padding on mobile */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* On mobile, prevent text wrapping to enable horizontal scrolling */
|
||||||
|
.amily2-chat-table th,
|
||||||
|
.amily2-chat-table td {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.amily2-chat-table td.amily2-cell-highlight {
|
.amily2-chat-table td.amily2-cell-highlight {
|
||||||
background-color: var(--am2-cell-highlight-bg, rgba(144, 238, 144, 0.3));
|
background-color: var(--am2-cell-highlight-bg, rgba(144, 238, 144, 0.3));
|
||||||
transition: background-color 0.5s ease-in-out;
|
transition: background-color 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user