Skip to content

Commit 72b8447

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

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/content/index.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ tags:
5353
tr {
5454
height: auto;
5555
object-fit: contain;
56-
max-height: 200px;
57-
overflow: hidden;
56+
5857
}
5958

6059
.title {
@@ -107,42 +106,42 @@ tags:
107106
/* Responsive stacking */
108107
@media (max-width: 700px) {
109108

110-
/* Make each row a vertical card */
109+
/* Make each row a card */
111110
tr {
112111
display: flex;
113112
flex-direction: column;
114-
margin-bottom: 2em;
115113
border: 1px solid #333;
116114
border-radius: 10px;
115+
margin-bottom: 1.5em;
117116
overflow: hidden;
118117
}
119118

120-
/* Hide header row only */
121119
thead {
122120
display: none;
123121
}
124122

125123
td {
124+
display: block;
126125
width: 100%;
127126
border: none;
128127
padding: 1em;
129128
box-sizing: border-box;
130129
}
131130

132-
/* Image: full width, auto height */
131+
/* Image becomes full-width */
133132
td img {
134133
width: 100%;
135134
height: auto;
136-
max-height: none;
135+
max-height: none; /* important */
137136
object-fit: contain;
138-
border-radius: 0;
137+
display: block;
139138
}
140139

141-
/* Container padding fix */
142140
.table-container {
143-
padding: 0 0.5em;
141+
padding: 0 .5em;
144142
}
145143
}
144+
146145
</style>
147146
<div class="table-container">
148147
<table>

0 commit comments

Comments
 (0)