Skip to content

Commit 4031ab2

Browse files
authored
Fix rotate -90 degree bug (easytarget#169)
Adding a style with flex-direction: column; and align-items: flex-start; does the job 😀
1 parent 44f1176 commit 4031ab2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index_other.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ const uint8_t index_simple_html[] = R"=====(<!doctype html>
1212
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
1313
<link rel="stylesheet" type="text/css" href="/style.css">
1414
<style>
15-
// style overrides here
15+
@media (min-width: 800px) and (orientation:landscape) {
16+
#content {
17+
display:flex;
18+
flex-wrap: nowrap;
19+
flex-direction: column;
20+
align-items: flex-start;
21+
}
22+
}
1623
</style>
1724
</head>
1825

0 commit comments

Comments
 (0)