Skip to content

Commit 72b1308

Browse files
fix: adjust mobile screen styling
1 parent 683a12c commit 72b1308

1 file changed

Lines changed: 21 additions & 32 deletions

File tree

src/content/index.md

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -106,54 +106,43 @@ tags:
106106

107107
/* Responsive stacking */
108108
@media (max-width: 700px) {
109-
table {
110-
width: 100%;
111-
}
112109

113-
table, thead, tbody, th, td, tr {
114-
display: block;
110+
/* Make each row a vertical card */
111+
tr {
112+
display: flex;
113+
flex-direction: column;
114+
margin-bottom: 2em;
115+
border: 1px solid #333;
116+
border-radius: 10px;
117+
overflow: hidden;
115118
}
116119

117-
th {
120+
/* Hide header row only */
121+
thead {
118122
display: none;
119123
}
120124

121-
tr {
122-
margin-bottom: 2em;
123-
border: none;
124-
}
125-
126125
td {
126+
width: 100%;
127127
border: none;
128-
padding: 0;
128+
padding: 1em;
129+
box-sizing: border-box;
129130
}
130131

131-
/* Poster cell */
132-
td:first-child img {
132+
/* Image: full width, auto height */
133+
td img {
133134
width: 100%;
134-
border-radius: 10px;
135-
margin-bottom: 1em;
135+
height: auto;
136+
max-height: none;
137+
object-fit: contain;
138+
border-radius: 0;
136139
}
137140

138-
/* Text cell */
139-
td:nth-child(2) {
141+
/* Container padding fix */
142+
.table-container {
140143
padding: 0 0.5em;
141144
}
142-
143-
/* Tags wrap nicely */
144-
.tags {
145-
gap: 0.4em;
146-
margin-bottom: 0.6em;
147-
}
148-
149-
/* Make rows feel like cards */
150-
tr {
151-
background: #111;
152-
padding: 1em;
153-
border-radius: 12px;
154-
}
155145
}
156-
157146
</style>
158147
<div class="table-container">
159148
<table>

0 commit comments

Comments
 (0)