Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

style: fix style issues

canisminor1990e3df7f6e24dc
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
index a590abd3c55..70673ca4a04 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
@@ -30,9 +30,6 @@ export const FILE_DATE_WIDTH = 160;
export const FILE_SIZE_WIDTH = 140;
const styles = createStaticStyles(({ css }) => {
- const hover = css`
- opacity: 0;
- `;
return {
container: css`
cursor: pointer;
@@ -40,7 +37,7 @@ const styles = createStaticStyles(({ css }) => {
&:hover {
background: ${cssVar.colorFillTertiary};
- .${cx(hover)} {
+ .res-actions {
opacity: 1;
}
}
@@ -64,7 +61,12 @@ const styles = createStaticStyles(({ css }) => {
opacity: 0.5;
`,
- hover,
+ hover: cx(
+ 'res-actions',
+ css`
+ opacity: 0;
+ `,
+ ),
item: css`
padding-block: 0;
padding-inline: 0 24px;