Skip to content

Commit

Permalink
Merge pull request #146 from waifuvault/fix-mobile-buttons
Browse files Browse the repository at this point in the history
Update CSS to fix sdk button issues on small screen
  • Loading branch information
nakedmcse committed Apr 6, 2024
2 parents 4d7030c + 38e088e commit ba19668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/public/assets/custom/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@
#victorique {
display: none;
}
#phpSdxButton{
.sdkButton {
width: 100% !important;
}
#sdkWrapper > div.row {
margin-bottom: 0 !important;
}
}

.card > i {
Expand Down
6 changes: 3 additions & 3 deletions src/public/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

<div class="row align-items-md-stretch mb-4">
<div class="col-md-12">
<div class="h-100 p-5 text-bg-dark rounded-3 border border-warning-subtle bg-body-tertiary">
<div id="sdkWrapper" class="h-100 p-5 text-bg-dark rounded-3 border border-warning-subtle bg-body-tertiary">
<h2 class="mb-4 text-center">Bespoke SDKs</h2>
<h6 class="text-center mb-4">Official SDKs for interacting with waifuvault</h6>
<div class="row align-items-md-stretch mb-4">
Expand Down Expand Up @@ -229,7 +229,7 @@
<p class="card-text">
The official Rust SDK
</p>
<a class="btn btn-primary btn-sm w-25" href="https://crates.io/crates/waifuvault" target="_blank">Rust SDK</a>
<a class="btn btn-primary btn-sm w-25 sdkButton" href="https://crates.io/crates/waifuvault" target="_blank">Rust SDK</a>
</div>
</div>
</div>
Expand All @@ -241,7 +241,7 @@
<p class="card-text">
The official PHP SDK
</p>
<a class="btn btn-primary btn-sm w-25" id="phpSdxButton" href="https://packagist.org/packages/ernestmarcinko/waifuvault-php-api" target="_blank">PHP SDK</a>
<a class="btn btn-primary btn-sm w-25 sdkButton" href="https://packagist.org/packages/ernestmarcinko/waifuvault-php-api" target="_blank">PHP SDK</a>
</div>
</div>
</div>
Expand Down

0 comments on commit ba19668

Please sign in to comment.