Browse Source

back to top

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 year ago
parent
commit
c19235b4dd
2 changed files with 21 additions and 4 deletions
  1. 7 0
      web/html/xui/inbounds.html
  2. 14 4
      web/html/xui/settings.html

+ 7 - 0
web/html/xui/inbounds.html

@@ -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">
@@ -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>
@@ -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 }"

+ 14 - 4
web/html/xui/settings.html

@@ -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>