Checkpoint React frontend migration
This commit is contained in:
19
backend/patch_css.py
Normal file
19
backend/patch_css.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import re
|
||||
|
||||
with open("app/admin_web.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# Fix activity feed CSS
|
||||
content = content.replace(
|
||||
".activity-feed li:last-child {{ border-bottom: none; }}",
|
||||
".activity-feed li:last-child {{ border-bottom: none; }}\n .activity-feed li svg, .activity-feed li svg.nav-icon, .activity-feed li svg.huge-icon {{ width: 20px; height: 20px; flex-shrink: 0; }}"
|
||||
)
|
||||
|
||||
# Fix alert CSS
|
||||
content = content.replace(
|
||||
".alert-warning {{ background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }}",
|
||||
".alert svg, .alert svg.huge-icon, .alert svg.page-icon {{ width: 24px; height: 24px; flex-shrink: 0; margin-right: 4px; margin-bottom: -4px; }}\n .alert-warning {{ background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }}"
|
||||
)
|
||||
|
||||
with open("app/admin_web.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user