File tree Expand file tree Collapse file tree 6 files changed +19
-19
lines changed
src/LinkDotNet.Blog.Web/Features/Components
tests/LinkDotNet.Blog.IntegrationTests/Web/Features Expand file tree Collapse file tree 6 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 3737 </div >
3838 <div class =" description" >
3939 <div class =" header" >
40- <h1 >@BlogPost.Title </h1 >
40+ <h4 class = " card-title " >@BlogPost.Title </h4 >
4141 <BookmarkButton IsBookmarked =" isBookmarked" Bookmarked =" ToggleBookmark" ></BookmarkButton >
4242 </div >
43- <p >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
43+ <p class = " card-content " >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
4444 <p class =" read-more" >
4545 <a href =" /blogPost/@BlogPost.Id/@BlogPost.Slug" aria-label =" @BlogPost.Title" >Read the whole article</a >
4646 </p >
Original file line number Diff line number Diff line change 8585 justify-content : space-between;
8686}
8787
88- .blog-card .description h1 {
89- line-height : 1 ;
90- margin : 0 0 5px 0 ;
91- font-size : 1.7rem ;
92- }
9388.blog-card .description .read-more {
9489 text-align : right;
9590}
155150 background-color : # ff8700 ;
156151}
157152
158- @media ( max-width : 400 px ) {
159- . blog-card . description h1 {
160- font-size : 1.25 rem ;
161- }
153+ . card-title {
154+ font-weight : 600 ;
155+ line-height : 1.3 ;
156+ margin-right : 1 rem ;
162157}
158+
159+ .card-content {
160+ font-weight : 300 ;
161+ }
162+
163163@media (min-width : 640px ) {
164164 .blog-card {
165165 flex-direction : row;
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ public async Task ShouldOnlyShowPublishedPosts()
2727 var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
2828
2929 blogPosts . ShouldHaveSingleItem ( ) ;
30- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Not published" ) ;
30+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Not published" ) ;
3131 }
3232}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public async Task ShouldOnlyDisplayBookmarkedPosts()
3333 var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
3434
3535 blogPosts . ShouldHaveSingleItem ( ) ;
36- blogPosts [ 0 ] . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Bookmarked Post" ) ;
36+ blogPosts [ 0 ] . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Bookmarked Post" ) ;
3737 }
3838
3939 [ Fact ]
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ public async Task ShouldShowAllBlogPostsWithLatestOneFirst()
3030 var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
3131
3232 blogPosts . Count . ShouldBe ( 2 ) ;
33- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "New" ) ;
34- blogPosts [ 1 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Old" ) ;
33+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "New" ) ;
34+ blogPosts [ 1 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Old" ) ;
3535 }
3636
3737 [ Fact ]
@@ -50,7 +50,7 @@ public async Task ShouldOnlyShowPublishedPosts()
5050 var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
5151
5252 blogPosts . ShouldHaveSingleItem ( ) ;
53- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Published" ) ;
53+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Published" ) ;
5454 }
5555
5656 [ Fact ]
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public async Task ShouldFindBlogPostWhenTitleMatches()
2323 var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Title 1" ) ) ;
2424
2525 var blogPosts = cut . WaitForComponent < ShortBlogPost > ( ) ;
26- blogPosts . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
26+ blogPosts . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
2727 }
2828
2929 [ Fact ]
@@ -39,7 +39,7 @@ public async Task ShouldFindBlogPostWhenTagMatches()
3939 var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Cat" ) ) ;
4040
4141 var blogPost = cut . WaitForComponent < ShortBlogPost > ( ) ;
42- blogPost . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
42+ blogPost . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
4343 }
4444
4545 [ Fact ]
@@ -53,7 +53,7 @@ public async Task ShouldUnescapeQuery()
5353 var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Title%201" ) ) ;
5454
5555 var blogPosts = cut . WaitForComponent < ShortBlogPost > ( ) ;
56- blogPosts . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
56+ blogPosts . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
5757 }
5858
5959 private void RegisterServices ( BunitContext ctx )
You can’t perform that action at this time.
0 commit comments