fix: pagination margin and opening project pages in new tab (#6079)
* fix: * adjust web to remove extra bottom margin too
This commit is contained in:
@@ -1065,7 +1065,7 @@ function handleClick(e) {
|
|||||||
!target.href.startsWith('http://tauri.localhost')
|
!target.href.startsWith('http://tauri.localhost')
|
||||||
) {
|
) {
|
||||||
const parsed = parseModrinthLink(target.href)
|
const parsed = parseModrinthLink(target.href)
|
||||||
if (parsed) {
|
if (target.target !== '_blank' && parsed) {
|
||||||
void openModrinthProjectLinkInApp(parsed)
|
void openModrinthProjectLinkInApp(parsed)
|
||||||
} else {
|
} else {
|
||||||
openUrl(target.href)
|
openUrl(target.href)
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ const messages = defineMessages({
|
|||||||
</template>
|
</template>
|
||||||
</ProjectCardList>
|
</ProjectCardList>
|
||||||
|
|
||||||
<div :class="ctx.variant === 'web' ? 'pagination-after my-3' : 'flex justify-end'">
|
<div :class="ctx.variant === 'web' ? 'pagination-after mt-3' : 'flex justify-end mt-3'">
|
||||||
<Pagination
|
<Pagination
|
||||||
:page="ctx.currentPage.value"
|
:page="ctx.currentPage.value"
|
||||||
:count="ctx.pageCount.value"
|
:count="ctx.pageCount.value"
|
||||||
|
|||||||
Reference in New Issue
Block a user