@@ -25,6 +25,17 @@ const configCounts = {
2525 opensearch : Object . keys ( openSearchConfigFields ) . length
2626} ;
2727
28+ // Add this near the top of your file, after the imports
29+ const styles = `
30+ .hide-scrollbar {
31+ -ms-overflow-style: none; /* IE and Edge */
32+ scrollbar-width: none; /* Firefox */
33+ }
34+ .hide-scrollbar::-webkit-scrollbar {
35+ display: none; /* Chrome, Safari and Opera */
36+ }
37+ ` ;
38+
2839const DatabaseConfigApp = ( ) => {
2940 const [ activeTab , setActiveTab ] = useState ( 'mysql' ) ;
3041 const [ databaseId , setDatabaseId ] = useState ( '' ) ;
@@ -45,6 +56,8 @@ const DatabaseConfigApp = () => {
4556
4657 return (
4758 < div className = "min-h-screen bg-gray-50 text-black p-6" >
59+ { /* Add the style tag */ }
60+ < style > { styles } </ style >
4861 < div className = "max-w-7xl mx-auto space-y-6" >
4962 { /* Header */ }
5063 < div className = "bg-[rgb(0,128,255)] text-white p-6 rounded-lg shadow-lg" >
@@ -77,12 +90,12 @@ const DatabaseConfigApp = () => {
7790 { /* Database Type Tabs */ }
7891 < div className = "bg-white rounded-lg shadow-sm border border-gray-200" >
7992 < div className = "border-b border-gray-200" >
80- < nav className = "flex" >
93+ < nav className = "flex flex-wrap " >
8194 { tabs . map ( ( tab ) => (
8295 < button
8396 key = { tab . id }
8497 onClick = { ( ) => setActiveTab ( tab . id ) }
85- className = { `px-6 py-3 text-sm font-medium border-b-2 ${
98+ className = { `px-4 sm:px- 6 py-3 text-sm font-medium border-b-2 ${
8699 activeTab === tab . id
87100 ? 'border-blue-500 text-blue-600'
88101 : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'
@@ -102,7 +115,7 @@ const DatabaseConfigApp = () => {
102115 { getFormattedDatabaseName ( ) } Configuration Options
103116 </ h2 >
104117 < div className = "ml-4 px-3 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded-full" >
105- { configCounts [ activeTab ] } options
118+ { configCounts [ activeTab as keyof typeof configCounts ] } options
106119 </ div >
107120 </ div >
108121 </ div >
0 commit comments