Skip to content

Commit a7fee39

Browse files
committed
fix(styles): prevent content overflow in aside directives
コードブロックをaside内に含められるようになったことで、長いコード行が asideコンテナからはみ出し、ページレイアウトを崩す問題が発生。 aside.directiveにoverflow: hiddenを追加してコンテナレベルで制限し、 .aside-contentにwidth: 100%とoverflow-x: autoを設定することで、 長いコンテンツは横スクロールで閲覧可能にした。 これにより、ユーザーは全てのコンテンツにアクセスしつつ、 ページ全体のレイアウトは保護される。
1 parent 56310f4 commit a7fee39

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/styles/blog.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ article.blog {
359359
flex-direction: column;
360360
align-items: flex-start;
361361
margin: var(--space-6) 0;
362+
overflow: hidden;
362363

363364
.aside-title {
364365
display: flex;
@@ -381,6 +382,8 @@ article.blog {
381382

382383
.aside-content {
383384
flex-grow: 1;
385+
width: 100%;
386+
overflow-x: auto;
384387
}
385388

386389
&.tips {

0 commit comments

Comments
 (0)