Skip to content

Commit

Permalink
Merge pull request #2933 from FoamyGuy/pi_bluesky_tft_scroller
Browse files Browse the repository at this point in the history
Pi bluesky scroller
  • Loading branch information
FoamyGuy authored Nov 27, 2024
2 parents 8e045c3 + 809475e commit 2264eef
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 8 deletions.
File renamed without changes.
Binary file added Pi_Bluesky_Scroller/Pi_Bluesky_Scroller.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ def quit(self):

# 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()
Expand Down
File renamed without changes.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,30 @@
display: none;
}

/* Scale image down to fit the full thing on the TFT */
img {
max-width: 304px;
max-height: 240px;
object-fit: contain;
@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{
.postAuthor {
overflow-wrap: break-word;
}

Expand Down
File renamed without changes.

0 comments on commit 2264eef

Please sign in to comment.