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
window = webview.create_window(
"bsky posts", "static/index.html", js_api=Api(), width=320, height=240,
x=0, y=0, frameless=True, fullscreen=True
"bsky posts", "static/index.html", js_api=Api(),
#width=320, height=240,
width=640, height=480,
x=0, y=0, #frameless=True, fullscreen=True
)
webview.start()

View file

@ -8,13 +8,28 @@
display: none;
}
/* Scale image down to fit the full thing on the TFT */
@media only screen and (max-width: 320px) {
img {
/* For TFT Size Display */
max-width: 304px;
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 */
.postAuthor {
overflow-wrap: break-word;