feat: implement dynamic training course tab system and modular PDF data migration scripts

This commit is contained in:
2026-07-27 17:00:43 +07:00
parent 54e420499f
commit 1a8726285c
98 changed files with 8041 additions and 3949 deletions
+16
View File
@@ -0,0 +1,16 @@
import os
with open('src/main/resources/static/css/custom.css', 'r') as f:
css = f.read()
# Replace max-width: fit-content with max-width: 100% or remove it
css = css.replace("max-width: fit-content;", "max-width: 860px;")
# 860px is the width in their snippet, but 100% is better.
# In their snippet they have a parent <div class="flex justify-center ..."><div class="... w-full ...">
# But the parent's width might not be constrained.
# Let's change max-width: fit-content to width: 100% and max-width: 860px;
css = css.replace("max-width: fit-content;", "max-width: 860px;")
with open('src/main/resources/static/css/custom.css', 'w') as f:
f.write(css)
print("Updated custom.css for full width")