Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: update some styles (#3843)

ybzkyd7c1be4ec8fe
diff --git a/packages/sheets-ui/src/views/permission/panel-list/index.tsx b/packages/sheets-ui/src/views/permission/panel-list/index.tsx
index e9f7a6fe2c..b047395ec7 100644
--- a/packages/sheets-ui/src/views/permission/panel-list/index.tsx
+++ b/packages/sheets-ui/src/views/permission/panel-list/index.tsx
@@ -119,13 +119,13 @@ export const SheetPermissionPanelList = () => {
useEffect(() => {
const subscribe = workbook.activeSheet$.subscribe(async () => {
- const ruleList = await getRuleList(true);
+ const ruleList = await getRuleList(isCurrentSheet);
setRuleList(ruleList);
});
return () => {
subscribe.unsubscribe();
};
- }, []);
+ }, [isCurrentSheet]);
useEffect(() => {
const getRuleListByRefresh = async () => {
@@ -303,7 +303,7 @@ export const SheetPermissionPanelList = () => {
<div className={styles.sheetPermissionListItemContent}>
<div className={styles.sheetPermissionListItemContentEdit}>
- <Tooltip title={item.creator?.userID}>
+ <Tooltip title={item.creator?.name}>
<div>
<Avatar src={item.creator?.avatar} style={{ marginRight: 6 }} size={24} />
</div>