Explorar o código

chore: cleanup

Adam hai 1 mes
pai
achega
076dfb3752

+ 1 - 1
packages/app/src/pages/layout.tsx

@@ -1287,7 +1287,7 @@ export default function Layout(props: ParentProps) {
           </div>
           </div>
           <div class="shrink-0 w-full pt-3 pb-3 flex flex-col items-center gap-2">
           <div class="shrink-0 w-full pt-3 pb-3 flex flex-col items-center gap-2">
             <Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Settings">
             <Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Settings">
-              <IconButton icon="settings-gear" variant="ghost" size="large" onClick={command.show} />
+              <IconButton disabled icon="settings-gear" variant="ghost" size="large" />
             </Tooltip>
             </Tooltip>
             <Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Help">
             <Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Help">
               <IconButton
               <IconButton

+ 10 - 6
packages/ui/src/components/icon-button.css

@@ -67,6 +67,12 @@
     [data-slot="icon-svg"] {
     [data-slot="icon-svg"] {
       color: var(--icon-strong-base);
       color: var(--icon-strong-base);
     }
     }
+
+    &:disabled {
+      background-color: var(--icon-strong-disabled);
+      color: var(--icon-invert-base);
+      cursor: not-allowed;
+    }
   }
   }
 
 
   &[data-variant="ghost"] {
   &[data-variant="ghost"] {
@@ -99,6 +105,10 @@
       /*   color: var(--icon-selected); */
       /*   color: var(--icon-selected); */
       /* } */
       /* } */
     }
     }
+    &:disabled {
+      color: var(--icon-invert-base);
+      cursor: not-allowed;
+    }
   }
   }
 
 
   &[data-size="normal"] {
   &[data-size="normal"] {
@@ -129,12 +139,6 @@
     letter-spacing: var(--letter-spacing-normal);
     letter-spacing: var(--letter-spacing-normal);
   }
   }
 
 
-  &:disabled {
-    background-color: var(--icon-strong-disabled);
-    color: var(--icon-invert-base);
-    cursor: not-allowed;
-  }
-
   &:focus {
   &:focus {
     outline: none;
     outline: none;
   }
   }