Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ const containerStyles = css({
marginTop: spacing[3],
});

const fieldStyles = css({
width: '50%',
});

function AdvancedTab({
updateConnectionFormField,
connectionStringUrl,
Expand Down Expand Up @@ -144,7 +140,6 @@ function AdvancedTab({
<FormFieldContainer>
<TextInput
spellCheck={false}
className={fieldStyles}
onChange={({ target: { value } }: ChangeEvent<HTMLInputElement>) => {
handleFieldChanged('replicaSet', value);
}}
Expand All @@ -161,7 +156,6 @@ function AdvancedTab({
<FormFieldContainer>
<TextInput
spellCheck={false}
className={fieldStyles}
onChange={({ target: { value } }: ChangeEvent<HTMLInputElement>) => {
handlePathChanged(value);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import UrlOptionsTable from './url-options-table';

const urlOptionsContainerStyles = css({
marginTop: spacing[3],
width: spacing[6] * 7,
});

const urlOptionsTableDescriptionStyles = css({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const containerStyles = css({

const contentStyles = css({
marginTop: spacing[3],
width: spacing[7] * 5,
});

function getSelectedAuthTabForConnectionString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ const containerStyles = css({

const contentStyles = css({
marginTop: spacing[3],
width: '50%',
minWidth: 400,
});

const getSelectedTunnelType = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Description,
Label,
FileInput,
css,
cx,
} from '@mongodb-js/compass-components';
import {
Expand All @@ -14,10 +13,6 @@ import {

import FormFieldContainer from '../../form-field-container';

const caFieldsContainer = css({
width: '80%',
});

function TLSCertificateAuthority({
tlsCAFile,
useSystemCA,
Expand All @@ -37,7 +32,7 @@ function TLSCertificateAuthority({
) => void;
}): React.ReactElement {
return (
<FormFieldContainer className={caFieldsContainer}>
<FormFieldContainer>
<FileInput
description={
displayDatabaseConnectionUserHints ? 'Learn More' : undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React from 'react';
import { FileInput, TextInput, css } from '@mongodb-js/compass-components';
import { FileInput, TextInput } from '@mongodb-js/compass-components';

import FormFieldContainer from '../../form-field-container';

const inputFieldStyles = css({
width: '80%',
});

function TLSClientCertificate({
tlsCertificateKeyFile,
tlsCertificateKeyFilePassword,
Expand All @@ -28,7 +24,7 @@ function TLSClientCertificate({
}): React.ReactElement {
return (
<>
<FormFieldContainer className={inputFieldStyles}>
<FormFieldContainer>
<FileInput
description={
displayDatabaseConnectionUserHints ? 'Learn More' : undefined
Expand Down Expand Up @@ -59,7 +55,6 @@ function TLSClientCertificate({
</FormFieldContainer>
<FormFieldContainer>
<TextInput
className={inputFieldStyles}
onChange={({
target: { value },
}: React.ChangeEvent<HTMLInputElement>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';

const formFieldContainerStyles = css({
marginTop: spacing[3],
width: spacing[7] * 6,
});

function FormFieldContainer({
Expand Down