Skip to content

Commit

Permalink
fix infinite rendering and responsive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj committed Aug 19, 2024
1 parent 17dfb42 commit 56984b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
3 changes: 1 addition & 2 deletions app/common/public/locales/da/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,5 @@
"invalidCapType": "Invalid capability type: {{type}}",
"whitespaceDetected": "Text Starts and/or Ends With Whitespace",
"pcloudyCredentialsRequired": "pCloudy username and api key are required!",
"duplicateCapabilityNameError": "A capability set with the same name already exists",
"searchInPageSource": "Search in page source"
"duplicateCapabilityNameError": "A capability set with the same name already exists"
}
3 changes: 2 additions & 1 deletion app/common/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,6 @@
"invalidCapType": "Invalid capability type: {{type}}",
"whitespaceDetected": "Text Starts and/or Ends With Whitespace",
"pcloudyCredentialsRequired": "pCloudy username and api key are required!",
"duplicateCapabilityNameError": "A capability set with the same name already exists"
"duplicateCapabilityNameError": "A capability set with the same name already exists",
"searchInPageSource": "Search in page source"
}
18 changes: 10 additions & 8 deletions app/common/renderer/components/Inspector/Inspector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,16 @@ const Inspector = (props) => {
</span>
}
extra={
<Row>
<Input
size="middle"
allowClear
placeholder={t('searchInPageSource')}
onChange={(e) => setPageSourceSearchText(e.target.value)}
prefix={<SearchOutlined />}
/>
<Row wrap={false}>
<div className={InspectorStyles['inspector-source-tree-search-input']}>
<Input
size="middle"
allowClear
placeholder={t('searchInPageSource')}
onChange={(e) => setPageSourceSearchText(e.target.value)}
prefix={<SearchOutlined />}
/>
</div>
<Tooltip title={t('Toggle Attributes')}>
<Button
type="text"
Expand Down
8 changes: 4 additions & 4 deletions app/common/renderer/components/Inspector/Inspector.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
height: 100%;
}

.inspector-main .interaction-tab-container :global(.ant-input-affix-wrapper) {
width: 200px;
}

.inspector-main .interaction-tab-container {
position: relative;
flex-grow: 1;
Expand Down Expand Up @@ -748,3 +744,7 @@
color: #272625;
background: #b6d932;
}

.inspector-source-tree-search-input {
max-width: 200px;
}

0 comments on commit 56984b0

Please sign in to comment.