Skip to content

Commit 14f2a90

Browse files
aymuos15claude
andcommitted
fix: microblog date clipping from mismatched padding/margin on scroll containers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e01009a commit 14f2a90

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

styles/components/microblog.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232

3333
/* Cards container */
3434
.microblog-cards {
35+
display: block;
36+
width: 100%;
3537
max-height: 18rem;
36-
overflow-y: auto;
38+
overflow: hidden auto;
3739
scrollbar-width: thin;
3840
scrollbar-color: var(--border) transparent;
3941
transition: opacity 0.3s ease;
@@ -56,6 +58,7 @@
5658
display: flex;
5759
justify-content: space-between;
5860
align-items: baseline;
61+
width: 100%;
5962
padding: 8px 0;
6063
border-bottom: 1px solid var(--border);
6164
cursor: pointer;
@@ -80,6 +83,7 @@
8083
text-overflow: ellipsis;
8184
white-space: nowrap;
8285
min-width: 0;
86+
flex: 1;
8387
}
8488

8589
.microblog-card-date {
@@ -169,9 +173,9 @@
169173
#microblog-list {
170174
flex: 1;
171175
min-height: 0;
172-
overflow-y: auto;
176+
overflow: hidden auto;
173177
padding-bottom: 3rem;
174-
padding-right: 0.5rem;
178+
padding-right: 1.5rem;
175179
margin-right: -1.5rem;
176180
scrollbar-width: thin;
177181
scrollbar-color: var(--border) transparent;
@@ -195,7 +199,7 @@
195199
min-height: 0;
196200
overflow-y: auto;
197201
padding-bottom: 3rem;
198-
padding-right: 0.5rem;
202+
padding-right: 1.5rem;
199203
margin-right: -1.5rem;
200204
scrollbar-width: thin;
201205
scrollbar-color: var(--border) transparent;

0 commit comments

Comments
 (0)