Fix: Images display problems on home page

Fix some css problems
This commit is contained in:
Akkariin Meiko 2020-01-19 11:46:27 +08:00 committed by GitHub
parent 663ceebfb9
commit 5f34bf9c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,13 @@ if($traffic < 0) {
.fix-text p { .fix-text p {
margin-bottom: 4px; margin-bottom: 4px;
} }
.fix-text pre {
background: rgba(0,0,0,0.05);
border-radius: 4px;
}
.fix-image img {
max-width: 100%;
}
</style> </style>
<div class="content-header"> <div class="content-header">
<div class="container-fluid"> <div class="container-fluid">
@ -90,7 +97,7 @@ if($traffic < 0) {
<h3 class="card-title">站点公告</h3> <h3 class="card-title">站点公告</h3>
</div> </div>
</div> </div>
<div class="card-body fix-text"> <div class="card-body fix-text fix-image">
<?php echo $markdown->text(Settings::get("broadcast", "暂时没有公告信息")); ?> <?php echo $markdown->text(Settings::get("broadcast", "暂时没有公告信息")); ?>
</div> </div>
</div> </div>
@ -100,11 +107,11 @@ if($traffic < 0) {
<h3 class="card-title">使用帮助</h3> <h3 class="card-title">使用帮助</h3>
</div> </div>
</div> </div>
<div class="card-body fix-text"> <div class="card-body fix-text fix-image">
<?php echo $markdown->text(Settings::get("helpinfo", "暂时没有帮助信息")); ?> <?php echo $markdown->text(Settings::get("helpinfo", "暂时没有帮助信息")); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>