Use hdmi display for now. Add zip for easy download button in guide

This commit is contained in:
foamyguy 2024-11-27 10:00:04 -06:00
parent 41c84a4610
commit 6be9a51f5c
6 changed files with 25 additions and 8 deletions

Binary file not shown.

View file

@ -188,8 +188,10 @@ class Api:
# create a webview and load the index.html page # create a webview and load the index.html page
window = webview.create_window( window = webview.create_window(
"bsky posts", "static/index.html", js_api=Api(), width=320, height=240, "bsky posts", "static/index.html", js_api=Api(),
x=0, y=0, frameless=True, fullscreen=True #width=320, height=240,
width=640, height=480,
x=0, y=0, #frameless=True, fullscreen=True
) )
webview.start() webview.start()

View file

@ -8,15 +8,30 @@
display: none; display: none;
} }
/* Scale image down to fit the full thing on the TFT */ @media only screen and (max-width: 320px) {
img { img {
max-width: 304px; /* For TFT Size Display */
max-height: 240px; max-width: 304px;
object-fit: contain; max-height: 240px;
object-fit: contain;
}
}
@media only screen and (max-width: 640px) {
img {
/* For Window on HDMI Display */
max-width: 600px;
max-height: 440px;
object-fit: contain;
}
body {
font-size: 1.2em;
}
} }
/* make really long handles wrap to next line instead of run off edge */ /* make really long handles wrap to next line instead of run off edge */
.postAuthor{ .postAuthor {
overflow-wrap: break-word; overflow-wrap: break-word;
} }