File tree Expand file tree Collapse file tree
.vitepress/theme/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,10 +353,15 @@ function getAuthorGithubHref(login: string): string {
353353 margin : 1.2rem 0 0 ;
354354 display : grid ;
355355 gap : 1.25rem ;
356+ width : 100% ;
357+ max-width : 100% ;
356358}
357359
358360.blog-entry {
359361 margin : 0 ;
362+ width : 100% ;
363+ max-width : 100% ;
364+ min-width : 0 ;
360365}
361366
362367.blog-card {
@@ -367,6 +372,10 @@ function getAuthorGithubHref(login: string): string {
367372 display : flex ;
368373 flex-direction : column ;
369374 gap : 0.55rem ;
375+ width : 100% ;
376+ max-width : 100% ;
377+ min-width : 0 ;
378+ box-sizing : border-box ;
370379 transition : border-color 0.2s ease , box-shadow 0.2s ease , transform 0.2s ease ;
371380}
372381
@@ -390,6 +399,8 @@ function getAuthorGithubHref(login: string): string {
390399 padding : 0 ;
391400 font-size : 1.35rem ;
392401 line-height : 1.25 ;
402+ overflow-wrap : anywhere;
403+ word-break : break-word ;
393404}
394405
395406.title a {
@@ -406,6 +417,8 @@ function getAuthorGithubHref(login: string): string {
406417 margin : 0 ;
407418 color : var (--vp-c-text-2 );
408419 line-height : 1.55 ;
420+ overflow-wrap : anywhere;
421+ word-break : break-word ;
409422}
410423
411424.post-footer {
@@ -595,8 +608,18 @@ function getAuthorGithubHref(login: string): string {
595608}
596609
597610@media (max-width : 640px ) {
611+ .blog-list ,
612+ .blog-entry ,
613+ .blog-card {
614+ width : 100% ;
615+ max-width : 100% ;
616+ min-width : 0 ;
617+ box-sizing : border-box ;
618+ }
619+
598620 .blog-card {
599621 padding : 1rem 0.95rem 0.9rem ;
622+ overflow : hidden ;
600623 }
601624
602625 .title {
@@ -613,7 +636,11 @@ function getAuthorGithubHref(login: string): string {
613636
614637 .authors {
615638 flex : 1 1 100% ;
639+ max-width : 100% ;
640+ }
641+
642+ .author-list {
643+ max-width : 100% ;
616644 }
617645}
618646 </style >
619-
You can’t perform that action at this time.
0 commit comments