Skip to content

Commit

Permalink
Merge pull request #23 from Assistants-Center/bug-fix
Browse files Browse the repository at this point in the history
Fixed theme select
  • Loading branch information
iMidnights authored Dec 3, 2022
2 parents ec4ac72 + 49fba7d commit 68c6adc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dbd-soft-ui",
"version": "1.5.38-beta.1",
"version": "1.5.39-beta.1",
"typings": ".d.ts",
"author": {
"name": "iMidnight"
Expand Down
5 changes: 2 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@
</div>
</div>
<div class="col-lg-5 ms-auto text-center mt-5 mt-lg-0">
<div class="bg-gradient-primary border-radius-lg h-100"
style="background-image: url('<%= req?.locales?.index?.card?.image %>') !important; background-repeat: no-repeat; background-size: contain; background-position: center;">
<div class="bg-gradient-primary border-radius-lg">
<div class="position-relative d-flex align-items-center justify-content-center h-100"
style="min-height: 210px !important;">
<img src="<%= req?.locales?.index?.card?.image %>" alt="branding">
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/partials/scripts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
$('.theme').click(function () {
$('.theme').removeClass('active');
$(this).addClass('active');
var theme = $(this).attr('data-theme');
document.cookie = `selectedTheme=${theme}; expires=Thu, 01 Dec 2022 00:00:00 UTC; path=/;`;
const theme = $(this).attr('data-theme');
setCookie('theme', theme, 365);
location.reload();
});
Expand Down

0 comments on commit 68c6adc

Please sign in to comment.