Skip to content

Commit 2264eef

Browse files
authored
Merge pull request #2933 from FoamyGuy/pi_bluesky_tft_scroller
Pi bluesky scroller
2 parents 8e045c3 + 809475e commit 2264eef

File tree

7 files changed

+25
-8
lines changed

7 files changed

+25
-8
lines changed
5.96 KB
Binary file not shown.

Pi_Bluesky_TFT_Scroller/code.py renamed to Pi_Bluesky_Scroller/code.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ def quit(self):
188188

189189
# create a webview and load the index.html page
190190
window = webview.create_window(
191-
"bsky posts", "static/index.html", js_api=Api(), width=320, height=240,
192-
x=0, y=0, frameless=True, fullscreen=True
191+
"bsky posts", "static/index.html", js_api=Api(),
192+
#width=320, height=240,
193+
width=640, height=480,
194+
x=0, y=0, #frameless=True, fullscreen=True
193195

194196
)
195197
webview.start()

Pi_Bluesky_Scroller/static/imgs/.gitkeep

Whitespace-only changes.

Pi_Bluesky_TFT_Scroller/static/index.html renamed to Pi_Bluesky_Scroller/static/index.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,30 @@
88
display: none;
99
}
1010

11-
/* Scale image down to fit the full thing on the TFT */
12-
img {
13-
max-width: 304px;
14-
max-height: 240px;
15-
object-fit: contain;
11+
@media only screen and (max-width: 320px) {
12+
img {
13+
/* For TFT Size Display */
14+
max-width: 304px;
15+
max-height: 240px;
16+
object-fit: contain;
17+
}
18+
19+
}
20+
21+
@media only screen and (max-width: 640px) {
22+
img {
23+
/* For Window on HDMI Display */
24+
max-width: 600px;
25+
max-height: 440px;
26+
object-fit: contain;
27+
}
28+
body {
29+
font-size: 1.2em;
30+
}
1631
}
1732

1833
/* make really long handles wrap to next line instead of run off edge */
19-
.postAuthor{
34+
.postAuthor {
2035
overflow-wrap: break-word;
2136
}
2237

0 commit comments

Comments
 (0)