Skip to content

Commit

Permalink
[Fix] 🐛 SideBar Height #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Jul 31, 2023
1 parent 12a76eb commit 3fe6268
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/stores/modules/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export const useUserStore = defineStore(
const checkUserToken = () => {
if (historyEnable.value) {
CIB.vm.sidePanel.isVisibleDesktop = true;
// 设置历史记录侧边栏的高度为 70vh
document.querySelector('cib-serp')?.shadowRoot?.querySelector('cib-side-panel')?.shadowRoot?.querySelector('div.scroller')?.setAttribute('style', 'height: 70vh');
} else {
CIB.vm.sidePanel.isVisibleDesktop = false;
}
Expand Down

0 comments on commit 3fe6268

Please sign in to comment.