Skip to content

Commit

Permalink
back to top
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Loading branch information
MHSanaei and alireza0 committed Dec 4, 2023
1 parent fcacada commit c19235b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
7 changes: 7 additions & 0 deletions web/html/xui/inbounds.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<a-tag color="green">[[ dbInbounds.length ]]</a-tag>
</a-col>
<a-col :xs="24" :sm="24" :lg="12">
<template>
<div>
<a-back-top :target="() => document.getElementById('content-layout')" visibility-height="200">
</a-back-top>
{{ i18n "clients" }}:
<a-tag color="green">[[ total.clients ]]</a-tag>
<a-popover title='{{ i18n "disabled" }}' :overlay-class-name="themeSwitcher.currentTheme">
Expand All @@ -98,6 +102,8 @@
</template>
<a-tag color="blue" v-if="onlineClients.length">[[ onlineClients.length ]]</a-tag>
</a-popover>
</div>
</template>
</a-col>
</a-row>
</a-card>
Expand Down Expand Up @@ -163,6 +169,7 @@
<a-radio-button value="online">{{ i18n "online" }}</a-radio-button>
</a-radio-group>
</div>
<a-back-top></a-back-top>
<a-table :columns="isMobile ? mobileColums : columns" :row-key="dbInbound => dbInbound.id"
:data-source="searchedInbounds"
:scroll="isMobile ? {} : { x: 1000 }"
Expand Down
18 changes: 14 additions & 4 deletions web/html/xui/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,20 @@
</a-space>
</a-col>
<a-col :xs="24" :sm="16">
<a-alert type="warning" style="float: right; width: fit-content"
message='{{ i18n "pages.settings.infoDesc" }}'
show-icon
>
<template>
<div>
<template>
<div>
<a-back-top :target="() => document.getElementById('content-layout')" visibility-height="200">
</a-back-top>
<a-alert type="warning" style="float: right; width: fit-content"
message='{{ i18n "pages.settings.infoDesc" }}'
show-icon
>
</div>
</template>
</div>
</template>
</a-col>
</a-row>
</a-card>
Expand Down

0 comments on commit c19235b

Please sign in to comment.