[fix] hub page button not showing/working (#157)

# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
This commit is contained in:
kwaroran
2023-06-05 02:24:30 +09:00
committed by GitHub

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { downloadRisuHub, getRisuHub, hubURL } from "src/ts/characterCards";
import { ArrowLeft, ArrowRight, DownloadIcon, FlagIcon, MenuIcon, SearchIcon, XIcon } from "lucide-svelte";
import { alertConfirm, alertInput, alertNormal } from "src/ts/alert";
import { alertConfirm, alertInput, alertNormal } from "src/ts/alert";
let openedData:null|{
name:string
@@ -81,6 +81,7 @@
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
if(page > 0){
page -= 1
getHub()
}
}}>
<ArrowLeft />
@@ -90,6 +91,7 @@
</button>
<button class="bg-darkbg h-14 w-14 min-w-14 rounded-lg ml-2 flex justify-center items-center hover:ring transition-shadow" on:click={() => {
page += 1
getHub()
}}>
<ArrowRight />
</button>