Skip to content

Commit 5390b05

Browse files
committed
Improve: tweak layout of buildings
1 parent 9f19fb5 commit 5390b05

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8-
# Changed
9-
- Change: Ignore tech type upgrades
8+
### Added
9+
10+
### Changed
1011
- Change: Rollback the algorithm about deltaTime
12+
- Improve: tweak layout of buildings
1113

1214
## [2042.11] - 2021-09-19
1315
### Added

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ let BestDealHelper = {
8080

8181
"init": function () {
8282
// change building layout
83-
[...document.getElementsByClassName("product")].forEach(e => e.style.lineHeight = "18px");
84-
[...document.getElementsByClassName("productName")].forEach(e => e.style.fontSize = "26px");
83+
[...document.styleSheets[1].cssRules].filter(e => e.selectorText === ".product .content")[0].style.paddingTop = "0px";
84+
[...document.styleSheets[1].cssRules].filter(e => e.selectorText === ".price::before")[0].style.top = "0px";
8585

8686
// noinspection JSUndeclaredVariable
8787
MOD = this;

0 commit comments

Comments
 (0)