compact fix
Playhop Compact Fix by masyudi888
Details
Authormasyudi888
LicenseNo License
Categoryplayhop.com
Created
Updated
Size2.2 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name Playhop Compact
@version 20240510.03.35
@namespace https://userstyles.world/user/masyudi888
@description compact fix
@license No License
@author masyudi888
==/UserStyle== */
@-moz-document url-prefix("playhop.com") {
/* reduce top main navbar height */
:root {
--header-height: 50px !important;
}
/* reduce transaction details padding */
app-transaction {
div:has(> .pre-auth-payments-nav) {
margin: 0 !important;
padding: 8px 16px !important;
}
fdc-filter {
margin: 0 !important;
padding: 8px !important;
}
.transaction-table-container {
padding: 0 !important;
border-radius: var(--cards-border-radius);
box-shadow: var(--cards-box-shadow);
}
app-transaction-table {
--table-cell-padding: 8px !important;
--table-cell-line-height: 1.4em !important;
th.table-heading {
padding: var(--table-cell-padding) !important;
}
.chevron-cell {
padding: var(--table-cell-padding) !important;
}
tr.section-header-container {
fdc-section-header > div {
padding: 8px !important;
}
background: var(--ion-color-light-tint) !important;
}
/* fix missing column in header rows (add another if there's only one) */
tr.section-header-container:has(:first-child:last-child)::after {
display: table-cell;
content: '\00a0';
}
}
}
/* for screenshots:
Array.from(document.querySelectorAll("app-transaction tbody > tr"))
.map(row => Array.from(row.querySelectorAll("td"))
.map(cell => Array.from(cell.querySelectorAll("span:not(.secondary-text)")).pop()))
.forEach(cells => ["Jan 01, 2024", "DUMMY TRANSACTION DESCRIPTION", "$1.23"].map((v, i) => cells[i].textContent = v))
*/
}