diff --git a/public/styles/main.css b/public/styles/main.css index d0243533..becd880e 100644 --- a/public/styles/main.css +++ b/public/styles/main.css @@ -334,7 +334,7 @@ main { background-position: 10px; padding-left: 40px; font-size: 12px; - min-width: 200px; + min-width: 100px; margin-bottom: 5px; } diff --git a/public/styles/shared.css b/public/styles/shared.css index 66d6df26..c96bc9e9 100644 --- a/public/styles/shared.css +++ b/public/styles/shared.css @@ -154,7 +154,9 @@ background-repeat: no-repeat; background-position: center; } - +#connection-search-input { + min-width: 210px; +} .search-window { border-color: var(--text-color-sub); border-radius: 5px; @@ -165,7 +167,7 @@ background-position: 10px; padding-left: 40px; font-size: 12px; - min-width: 200px; + min-width: 100px; } .accented-container { diff --git a/src/views/connection/__tests__/connection.test.ts.snap b/src/views/connection/__tests__/connection.test.ts.snap index 5c66077c..8edfc742 100644 --- a/src/views/connection/__tests__/connection.test.ts.snap +++ b/src/views/connection/__tests__/connection.test.ts.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ConnectionTemplates listPage should escape html in name 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
<div>I own you</div>
Connected
Send Query
"`; +exports[`ConnectionTemplates listPage should escape html in name 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
<div>I own you</div>
Connected
Send Query
"`; -exports[`ConnectionTemplates listPage should render multiple with each status 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
Company A
Disconnected
Disconnected
Company B
Invite Sent
Waiting for Response
Company C
Verification Code Required
Complete Verification
Company D
Connected
Send Query
Company E
Verification Code Required
Complete Verification
Company F
Waiting for Response
Waiting for Response
"`; +exports[`ConnectionTemplates listPage should render multiple with each status 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
Company A
Disconnected
Disconnected
Company B
Invite Sent
Waiting for Response
Company C
Verification Code Required
Complete Verification
Company D
Connected
Send Query
Company E
Verification Code Required
Complete Verification
Company F
Waiting for Response
Waiting for Response
"`; -exports[`ConnectionTemplates listPage should render with no connections 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
No Connections for that search query. Try again or add a new connection
"`; +exports[`ConnectionTemplates listPage should render with no connections 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
No Connections for that search query. Try again or add a new connection
"`; -exports[`ConnectionTemplates listPage should render with single connection 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
Company A
Disconnected
Disconnected
"`; +exports[`ConnectionTemplates listPage should render with single connection 1`] = `"Veritable - Connections

Connections

Connections
Company NameStatusActions
Company A
Disconnected
Disconnected
"`; diff --git a/src/views/connection/connection.tsx b/src/views/connection/connection.tsx index e413113e..28c56a38 100644 --- a/src/views/connection/connection.tsx +++ b/src/views/connection/connection.tsx @@ -96,7 +96,6 @@ export default class ConnectionTemplates { hx-target="#search-results" hx-select="#search-results" hx-swap="outerHTML" - oninput="this.style.width = (Math.max(210, (this.value.length + 9) * 6.5)) + 'px';" > diff --git a/src/views/credentials/__tests__/index.test.ts.snap b/src/views/credentials/__tests__/index.test.ts.snap index 7a3284be..caa37d9b 100644 --- a/src/views/credentials/__tests__/index.test.ts.snap +++ b/src/views/credentials/__tests__/index.test.ts.snap @@ -1,11 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`CredentialsTemplates listPage credentials case insensitive searches filters based on lower case input 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; +exports[`CredentialsTemplates listPage credentials case insensitive searches filters based on lower case input 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; -exports[`CredentialsTemplates listPage credentials case insensitive searches filters based on upper case input 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; +exports[`CredentialsTemplates listPage credentials case insensitive searches filters based on upper case input 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; -exports[`CredentialsTemplates listPage renders alice's credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; +exports[`CredentialsTemplates listPage renders alice's credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
DIGITAL CATAPULTSupplier credential

Sender

Completed
View Credential
CARE ONUS LTDSupplier credential

Recipient

Completed
View Credential
"`; -exports[`CredentialsTemplates listPage renders bob's credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
CARE ONUS LTDSupplier credential

Sender

Completed
View Credential
DIGITAL CATAPULTSupplier credential

Recipient

Completed
View Credential
"`; +exports[`CredentialsTemplates listPage renders bob's credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
CARE ONUS LTDSupplier credential

Sender

Completed
View Credential
DIGITAL CATAPULTSupplier credential

Recipient

Completed
View Credential
"`; -exports[`CredentialsTemplates listPage renders with no credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
No Credentials found
"`; +exports[`CredentialsTemplates listPage renders with no credentials 1`] = `"Veritable - Credentials

Credential Management

Credential Management
New Credential
Credentials
Company NameCredential TypeRelationshipStatusActions
No Credentials found
"`; diff --git a/src/views/credentials/index.tsx b/src/views/credentials/index.tsx index 2eaa4340..cbe3e9fe 100644 --- a/src/views/credentials/index.tsx +++ b/src/views/credentials/index.tsx @@ -78,7 +78,6 @@ export default class CredentialListTemplates { hx-target="#search-results" hx-select="#search-results" hx-swap="outerHTML" - oninput="this.style.width = (Math.max(200, (this.value.length + 9) * 6.5)) + 'px';" > diff --git a/src/views/queries/__tests__/queriesList.test.ts.snap b/src/views/queries/__tests__/queriesList.test.ts.snap index 85a10105..31a10154 100644 --- a/src/views/queries/__tests__/queriesList.test.ts.snap +++ b/src/views/queries/__tests__/queriesList.test.ts.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ConnectionTemplates listPage should escape html in name 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
<div>I own you</div>Total Carbon Embodiment

Sent

Resolved
View Response
"`; +exports[`ConnectionTemplates listPage should escape html in name 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
<div>I own you</div>Total Carbon Embodiment

Sent

Resolved
View Response
"`; -exports[`ConnectionTemplates listPage should render multiple with each status 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
Company ATotal Carbon Embodiment

Sent

Resolved
View Response
Company BTotal Carbon Embodiment

Sent

Resolved
View Response
Company CTotal Carbon Embodiment

Sent

Resolved
View Response
Company DTotal Carbon Embodiment

Sent

Resolved
View Response
Company ETotal Carbon Embodiment

Sent

Resolved
View Response
Company FTotal Carbon Embodiment

Sent

Resolved
View Response
Company GTotal Carbon Embodiment

Sent

Errored
no action available
"`; +exports[`ConnectionTemplates listPage should render multiple with each status 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
Company ATotal Carbon Embodiment

Sent

Resolved
View Response
Company BTotal Carbon Embodiment

Sent

Resolved
View Response
Company CTotal Carbon Embodiment

Sent

Resolved
View Response
Company DTotal Carbon Embodiment

Sent

Resolved
View Response
Company ETotal Carbon Embodiment

Sent

Resolved
View Response
Company FTotal Carbon Embodiment

Sent

Resolved
View Response
Company GTotal Carbon Embodiment

Sent

Errored
no action available
"`; -exports[`ConnectionTemplates listPage should render with no connections 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
No Queries for that search. Try again or add a new query
"`; +exports[`ConnectionTemplates listPage should render with no connections 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
No Queries for that search. Try again or add a new query
"`; -exports[`ConnectionTemplates listPage should render with single query 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
Company ATotal Carbon Embodiment

Sent

Resolved
View Response
"`; +exports[`ConnectionTemplates listPage should render with single query 1`] = `"Veritable - Queries

Query Management

Query Management
Query Request
Query Management
Company NameQuery TypeDirectionRequested deadlineStatusActions
Company ATotal Carbon Embodiment

Sent

Resolved
View Response
"`; diff --git a/src/views/queries/queriesList.tsx b/src/views/queries/queriesList.tsx index ef6c600d..68a5f8fb 100644 --- a/src/views/queries/queriesList.tsx +++ b/src/views/queries/queriesList.tsx @@ -94,7 +94,6 @@ export default class QueryListTemplates { hx-target="#search-results" hx-select="#search-results" hx-swap="outerHTML" - oninput="this.style.width = (Math.max(200, (this.value.length + 9) * 6.5)) + 'px';" >