enhance: stick sidebar to top

This commit is contained in:
0xJacky 2022-11-12 23:44:49 +08:00
parent 813b94baae
commit cdafc62009
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
2 changed files with 6 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "nginx-ui-frontend-next", "name": "nginx-ui-frontend-next",
"private": true, "private": true,
"version": "1.6.5", "version": "1.6.6",
"type": "commonjs", "type": "commonjs",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View file

@ -102,6 +102,11 @@ const visible = computed(() => {
</template> </template>
<style lang="less"> <style lang="less">
.sidebar {
position: sticky;
top: 0;
}
.ant-layout-sider-collapsed .logo { .ant-layout-sider-collapsed .logo {
overflow: hidden; overflow: hidden;
} }