Skip to content

Commit 75c6c24

Browse files
seanbonnerclaude
andcommitted
Fix mobile overflow: increase breakpoint to 800px, add word-wrap
- Move wallet truncation to 800px breakpoint (was 480px) - Add overflow-wrap and word-break to dd elements for long text - Add min-width:0 to content area to allow proper shrinking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b60cdb5 commit 75c6c24

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

  • wp-content/plugins/sb-punks-registry/assets

wp-content/plugins/sb-punks-registry/assets/sbpr.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SB Punks Registry 0.1.11 */
1+
/* SB Punks Registry 0.1.12 */
22

33
/* Front page: kill theme header/nav/logo wrappers. */
44
.sbpr-front header#masthead,
@@ -177,6 +177,7 @@
177177

178178
.sbpr-single__content{
179179
order: 1;
180+
min-width: 0; /* Allow flex/grid child to shrink below content size */
180181
}
181182

182183
.sbpr-single__imglink{
@@ -235,6 +236,8 @@
235236

236237
.sbpr-single__facts dd{
237238
margin: 0;
239+
overflow-wrap: break-word;
240+
word-break: break-word;
238241
}
239242

240243
.sbpr-single__burned{
@@ -252,6 +255,9 @@
252255
margin: 0 0 12px;
253256
}
254257

258+
/* Wallet address: show full by default, short on mobile */
259+
.sbpr-wallet-short { display: none; }
260+
255261
/* Mobile: image first, then text */
256262
@media (max-width: 800px){
257263
.sbpr-single__wrap{
@@ -262,11 +268,11 @@
262268
.sbpr-single__fact{
263269
grid-template-columns: 120px 1fr;
264270
}
271+
/* Show truncated wallet address on mobile */
272+
.sbpr-wallet-full { display: none; }
273+
.sbpr-wallet-short { display: inline; }
265274
}
266275

267-
/* Wallet address: show full by default, short on mobile */
268-
.sbpr-wallet-short { display: none; }
269-
270276
/* Small mobile: stack fact labels above values */
271277
@media (max-width: 480px){
272278
.sbpr-single__wrap{
@@ -276,9 +282,6 @@
276282
grid-template-columns: 1fr;
277283
gap: 2px;
278284
}
279-
/* Show truncated wallet address on mobile */
280-
.sbpr-wallet-full { display: none; }
281-
.sbpr-wallet-short { display: inline; }
282285
}
283286

284287

0 commit comments

Comments
 (0)