+
handleHslChange('h', e.target.value)}
+ onChange={(e, { value }) => handleHslChange('h', value)}
size="sm"
/>
-
+
handleHslChange('s', e.target.value)}
+ onChange={(e, { value }) => handleHslChange('s', value)}
size="sm"
/>
-
+
handleHslChange('l', e.target.value)}
+ onChange={(e, { value }) => handleHslChange('l', value)}
size="sm"
/>
- {/* Layout Toggle */}
-
-
-
+ {/* Layout Toggle - Moved outside ToolControls */}
+
+
+
+
{/* Format Values */}
- {/* Color History */}
- {state.history.length > 0 && (
-
-
- History
-
-
- {state.history.map((item, idx) => (
-
loadFromHistory(item)}
- style={{
- display: 'flex',
- alignItems: 'center',
- gap: '0.5rem',
- padding: '0.5rem',
- cursor: 'pointer',
- borderRadius: '4px',
- marginBottom: '0.25rem',
- backgroundColor: 'var(--cds-layer-hover)'
- }}
- >
-
-
- {item.hex}
-
-
- ))}
-
-
- )}
-
- {/* Code Snippets */}
-
+ {/* Code Snippets - 70% */}
+
dispatch({ type: 'SET_SELECTED_TAB', payload: selectedIndex })}
@@ -828,13 +772,25 @@ export default function ColorConverter() {
{(codeSnippets[tab.id] || []).map((snippet, idx) => (
-
+
+
+
+ {/* Color History - 30% */}
+
+
+ History
+ dispatch({ type: 'CLEAR_HISTORY' })}
+ iconDescription="Clear history"
+ />
+
+
+ {state.history.length === 0 ? (
+
+ No colors in history
+
+ ) : (
+ state.history.map((item, idx) => (
+
loadFromHistory(item)}
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem',
+ cursor: 'pointer',
+ borderRadius: '4px',
+ marginBottom: '0.25rem',
+ backgroundColor: 'var(--cds-layer-hover)'
+ }}
+ >
+
+
+ {item.hex}
+
+
+ ))
+ )}
+
+
);
diff --git a/frontend/src/pages/DateTimeConverter/index.jsx b/frontend/src/pages/DateTimeConverter/index.jsx
index 61ab2a7..cb6d455 100644
--- a/frontend/src/pages/DateTimeConverter/index.jsx
+++ b/frontend/src/pages/DateTimeConverter/index.jsx
@@ -221,7 +221,7 @@ export default function DateTimeConverter() {
};
return (
-
+
{
+ if (url.startsWith('~')) {
+ return { file: url.substring(1) };
+ }
+ return null;
+ }
+ ]
}
}
+ },
+ resolve: {
+ alias: {
+ // Ensure @ibm/plex can be resolved
+ '@ibm/plex': path.resolve(__dirname, 'node_modules/@ibm/plex')
+ }
}
})
\ No newline at end of file