fix: table scroll bug

This commit is contained in:
windingwind 2023-05-05 15:12:55 +08:00
parent 1d6a8f0333
commit 2a49cbaa87
3 changed files with 20 additions and 3 deletions

View File

@ -2,6 +2,7 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero-react-client.css" type="text/css"?>
<?xml-stylesheet href="chrome://__addonRef__/content/virtualizedTable.css" type="text/css"?>
<!DOCTYPE html>
<html
lang="en"
@ -72,6 +73,12 @@
.list-viewport {
width: 100%;
background-color: #ffffff;
overflow: hidden;
}
#table-container {
height: 100%;
width: 100%;
overflow: hidden;
}
.tool-button {
width: 75px;
@ -81,9 +88,6 @@
text-align: center;
margin: 0 10px 0 10px;
}
.virtualized-table-body {
overflow: hidden;
}
</style>
</head>
<body>

View File

@ -2,6 +2,7 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero-react-client.css" type="text/css"?>
<?xml-stylesheet href="chrome://__addonRef__/content/virtualizedTable.css" type="text/css"?>
<!DOCTYPE html>
<html
lang="en"
@ -72,7 +73,14 @@
}
.list-viewport {
width: calc(20% - 10px);
height: 100%;
background-color: #ffffff;
overflow: hidden;
}
#table-container {
height: 100%;
width: 100%;
overflow: hidden;
}
.editor-viewport {
display: flex;

View File

@ -0,0 +1,5 @@
.virtualized-table {
height: 100%;
-moz-user-select: none;
user-select: none;
}