mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-26 13:14:04 +00:00
Properly style CassandraAddCollectionPane (#862)
This commit is contained in:
20
src/Explorer/Panes/PanelStyles.ts
Normal file
20
src/Explorer/Panes/PanelStyles.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ITextFieldStyles } from "@fluentui/react";
|
||||
|
||||
interface TextFieldStylesProps {
|
||||
fontSize: number | string;
|
||||
width: number | string;
|
||||
}
|
||||
|
||||
export const getTextFieldStyles = (params?: TextFieldStylesProps): Partial<ITextFieldStyles> => ({
|
||||
field: {
|
||||
fontSize: params?.fontSize || 12,
|
||||
selectors: {
|
||||
"::placeholder": {
|
||||
fontSize: params?.fontSize || 12,
|
||||
},
|
||||
},
|
||||
},
|
||||
root: {
|
||||
width: params?.width || 300,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user