File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,21 @@ const { showGoogle = false } = Astro.props;
2323 <!-- Google Adsense 竖向广告 -->
2424 {
2525 showGoogle && (
26- <div class = " google-ads-frame" >
27- <ins
28- class = " adsbygoogle"
29- data-ad-client = " ca-pub-4147143076931995"
30- data-ad-slot = " 1866407052"
31- data-ad-format = " auto"
32- data-full-width-responsive = " true"
33- />
34- <script is :inline >
35- (adsbygoogle = window.adsbygoogle || []).push({ } );
36- </script >
26+ <div class = " w-full xl:flex-1" >
27+ <div class = " w-full p-4 text-sm leading-6" >
28+ <div class = " google-ads-frame" >
29+ <ins
30+ class = " adsbygoogle"
31+ data-ad-client = " ca-pub-4147143076931995"
32+ data-ad-slot = " 1866407052"
33+ data-ad-format = " auto"
34+ data-full-width-responsive = " true"
35+ />
36+ <script is :inline >
37+ (adsbygoogle = window.adsbygoogle || []).push({ } );
38+ </script >
39+ </div >
40+ </div >
3741 </div >
3842 )
3943 }
@@ -45,16 +49,14 @@ const { showGoogle = false } = Astro.props;
4549 min-height: 0;
4650 margin: 0 auto;
4751 padding: 0;
48- border: 1px solid #e5e7eb;
49- border-radius: 0.5rem;
5052 background-color: transparent;
5153 overflow: hidden;
5254 box-sizing: border-box;
5355 }
5456
5557 .google-ads-frame .adsbygoogle {
56- display: block;
58+ display: inline- block;
5759 width: 192px;
58- height: 300px ;
60+ height: 600px ;
5961 }
6062</style >
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ const {
3737 width: 100%;
3838 min-height: 0;
3939 padding: 0;
40- border: 1px solid #e5e7eb;
41- border-radius: 0.5rem;
4240 background-color: transparent;
4341 overflow: hidden;
4442 box-sizing: border-box;
You can’t perform that action at this time.
0 commit comments