Skip to content

Commit 5737fc3

Browse files
committed
Move separator inside web target conditional so it only renders for web mode
1 parent 3112f3e commit 5737fc3

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

  • apps/editor/src/views/prompt/frontend/Main/MainView

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,20 +248,21 @@ export const MainView: React.FC<Props> = (props) => {
248248
<UiScrollable scroll_to_top_key={props.scroll_reset_key} top_shadow>
249249
<div className={styles.container}>
250250
{props.target == TARGET.WEB && (
251-
<BrowserConnectionStatus
252-
is_connected={props.is_connected}
253-
on_install={props.on_install_browser_extension}
254-
translations={{
255-
connected: t('main.browser-connection.connected'),
256-
not_connected: t('main.browser-connection.not-connected'),
257-
install: t('main.browser-connection.install'),
258-
hide: t('main.browser-connection.hide')
259-
}}
260-
/>
251+
<>
252+
<BrowserConnectionStatus
253+
is_connected={props.is_connected}
254+
on_install={props.on_install_browser_extension}
255+
translations={{
256+
connected: t('main.browser-connection.connected'),
257+
not_connected: t('main.browser-connection.not-connected'),
258+
install: t('main.browser-connection.install'),
259+
hide: t('main.browser-connection.hide')
260+
}}
261+
/>
262+
<UiSeparator height={6} />
263+
</>
261264
)}
262265

263-
<UiSeparator height={6} />
264-
265266
{props.response_history.length > 0 && (
266267
<UiResponses
267268
response_history={props.response_history}

0 commit comments

Comments
 (0)