diff --git a/src/renderer/components/Increment/ActionsClone.tsx b/src/renderer/components/Increment/ActionsClone.tsx index 60882b5..277b11b 100644 --- a/src/renderer/components/Increment/ActionsClone.tsx +++ b/src/renderer/components/Increment/ActionsClone.tsx @@ -4,6 +4,7 @@ import { Button, Icon, Popup } from 'semantic-ui-react'; import { IIncrement } from '../../interfaces/IIncrement'; import { handleClone } from '../../utils/incrementHandlers'; import { AppDispatch } from '../../store'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface ActionsCloneProps { increment: IIncrement; @@ -20,7 +21,7 @@ const ActionsClone: React.FC = ({ = ({ = ({ = ({ model, dispatch }) => ( handleClone(e, model, dispatch)}> + } diff --git a/src/renderer/components/Model/ActionsDelete.tsx b/src/renderer/components/Model/ActionsDelete.tsx index beff548..b9d669c 100644 --- a/src/renderer/components/Model/ActionsDelete.tsx +++ b/src/renderer/components/Model/ActionsDelete.tsx @@ -3,6 +3,7 @@ import { Button, Icon, Popup } from 'semantic-ui-react'; import { AppDispatch } from '../../store'; import { handleDelete } from '../../utils/modelHandlers'; import { IModel } from '../../interfaces/IModel'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface ActionsDeleteProps { model: IModel; @@ -12,7 +13,13 @@ interface ActionsDeleteProps { const ActionsDelete: React.FC = ({ model, dispatch }) => ( handleDelete(e, model.id, dispatch)}> + } diff --git a/src/renderer/components/Model/ActionsEdit.tsx b/src/renderer/components/Model/ActionsEdit.tsx index 10a6b94..c0f6bd1 100644 --- a/src/renderer/components/Model/ActionsEdit.tsx +++ b/src/renderer/components/Model/ActionsEdit.tsx @@ -3,6 +3,7 @@ import { Button, Icon, Popup } from 'semantic-ui-react'; import type { IModel } from '../../interfaces/IModel'; import { AppDispatch } from '../../store'; import { handleEdit } from '../../utils/modelHandlers'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface ModelActionsEditProps { model: IModel; @@ -12,7 +13,13 @@ interface ModelActionsEditProps { const ModelActionsEdit: React.FC = ({ model, dispatch }) => ( handleEdit(e, model, dispatch)}> + } diff --git a/src/renderer/components/Products/TableCellActionsClone.tsx b/src/renderer/components/Products/TableCellActionsClone.tsx index a308239..50d3956 100644 --- a/src/renderer/components/Products/TableCellActionsClone.tsx +++ b/src/renderer/components/Products/TableCellActionsClone.tsx @@ -4,6 +4,7 @@ import { Button, Icon, Popup } from 'semantic-ui-react'; import { IProduct } from '../../interfaces/IProduct'; import { handleClone } from '../../utils/productsHandlers'; import { AppDispatch } from '../../store'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface TableCellActionsCloneProps { product: IProduct; @@ -19,6 +20,7 @@ const TableCellActionsClone: React.FC = ({ product } basic size="tiny" icon + className="products-button" onClick={(e) => handleClone(e, product, dispatch)} > diff --git a/src/renderer/components/Products/TableCellActionsDelete.tsx b/src/renderer/components/Products/TableCellActionsDelete.tsx index be7d3f3..82b4200 100644 --- a/src/renderer/components/Products/TableCellActionsDelete.tsx +++ b/src/renderer/components/Products/TableCellActionsDelete.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Button, Icon, Popup } from 'semantic-ui-react'; import { IProduct } from '../../interfaces/IProduct'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface TableCellActionsDeleteProps { product: IProduct; @@ -16,7 +17,11 @@ const TableCellActionsDelete: React.FC = ({ return ( { e.stopPropagation(); setProductToDelete(product.id); diff --git a/src/renderer/components/Products/TableCellActionsEdit.tsx b/src/renderer/components/Products/TableCellActionsEdit.tsx index 33adb50..2649b39 100644 --- a/src/renderer/components/Products/TableCellActionsEdit.tsx +++ b/src/renderer/components/Products/TableCellActionsEdit.tsx @@ -4,6 +4,7 @@ import { Button, Icon, Popup } from 'semantic-ui-react'; import { IProduct } from '../../interfaces/IProduct'; import { openEditModal } from '../../utils/productsHandlers'; import { AppDispatch } from '../../store'; +import '../../styles/products.css'; // Ensure this path is correct based on your project structure interface TableCellActionsEditProps { product: IProduct; @@ -19,6 +20,7 @@ const TableCellActionsEdit: React.FC = ({ product }) basic size="tiny" icon + className="products-button" onClick={(e) => { e.stopPropagation(); openEditModal(dispatch, product); diff --git a/src/renderer/styles/increment.css b/src/renderer/styles/increment.css index a1a6dab..06917c2 100644 --- a/src/renderer/styles/increment.css +++ b/src/renderer/styles/increment.css @@ -29,3 +29,12 @@ .increment-content { padding-left: 2em; } + +.increment-actions .action-button { + opacity: 0.2; + transition: opacity 0.3s ease; +} + +.increment-actions .action-button:hover { + opacity: 1; +} diff --git a/src/renderer/styles/model.css b/src/renderer/styles/model.css index 0c5e2dc..ca91306 100644 --- a/src/renderer/styles/model.css +++ b/src/renderer/styles/model.css @@ -35,3 +35,12 @@ display: flex; align-items: center; } + +.model-actions .action-button { + opacity: 0.2; + transition: opacity 0.3s ease; +} + +.model-actions .action-button:hover { + opacity: 1; +} \ No newline at end of file diff --git a/src/renderer/styles/products.css b/src/renderer/styles/products.css index e7d8dda..3628e39 100644 --- a/src/renderer/styles/products.css +++ b/src/renderer/styles/products.css @@ -160,7 +160,6 @@ max-width: 180px; } -/* Responsive Table Styles */ .segment.basic { overflow-x: auto; padding: 0; @@ -197,3 +196,11 @@ justify-content: flex-end !important; } } + +.products-button { + opacity: 0.2; +} + +.products-button:hover { + opacity: 1; +}