terminal ui fixes.

pull/4632/head
lianahus 8 months ago committed by Aniket
parent 0253ec2715
commit 427cfc59d0
  1. 4
      apps/remix-ide/src/app/tabs/locales/en/terminal.json
  2. 2
      libs/remix-ui/terminal/src/lib/components/remix-ui-terminal-bar.tsx
  3. 26
      libs/remix-ui/terminal/src/lib/components/remix-ui-terminal-menu.tsx
  4. 5
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.css

@ -1,8 +1,8 @@
{ {
"terminal.listen": "listen on all transactions", "terminal.listen": "Listen on all transactions",
"terminal.listenVM": "Listen on all transactions is disabled for VM environment", "terminal.listenVM": "Listen on all transactions is disabled for VM environment",
"terminal.listenTitle": "If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you", "terminal.listenTitle": "If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you",
"terminal.search": "Search with transaction hash or address", "terminal.search": "Filter with transaction hash or address",
"terminal.used": "used", "terminal.used": "used",
"terminal.debug": "Debug", "terminal.debug": "Debug",
"terminal.welcomeText1": "Welcome to", "terminal.welcomeText1": "Welcome to",

@ -23,7 +23,7 @@ export const RemixUITerminalBar = (props: RemixUiTerminalProps) => {
return (<> return (<>
<div className="remix_ui_terminal_bar d-flex"> <div className="remix_ui_terminal_bar d-flex">
<div <div
className="remix_ui_terminal_menu d-flex w-100 align-items-center position-relative border-top border-dark bg-light" className="remix_ui_terminal_menu justify-content-between d-flex w-100 align-items-center position-relative border-top border-dark bg-light"
ref={terminalMenu} ref={terminalMenu}
data-id="terminalToggleMenu" data-id="terminalToggleMenu"
> >

@ -27,25 +27,23 @@ export const RemixUITerminalMenu = (props: RemixUiTerminalProps) => {
} }
return (<div className='d-flex flex-row align-items-center'> return (<div className='d-flex flex-row align-items-center'>
<CustomTooltip placement="top" tooltipId="terminalClear" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="terminal.pendingTransactions" />}> <CustomTooltip placement="top" tooltipId="terminalpendingTransactions" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="terminal.pendingTransactions" />}>
<div className="mx-2">0</div> <div className="mx-2">0</div>
</CustomTooltip> </CustomTooltip>
<CustomTooltip <CustomTooltip
placement="top" placement="top"
tooltipId="terminalClear" tooltipId="terminalListenOnN"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={intl.formatMessage({ id: terminalState.isVM ? 'terminal.listenVM' : 'terminal.listenTitle' })} tooltipText={terminalState.isVM ? intl.formatMessage({ id: 'terminal.listenVM' }) : intl.formatMessage({ id: 'terminal.listenTitle' })}
> >
<div className="h-80 mx-3 align-items-center remix_ui_terminal_listenOnNetwork custom-control custom-checkbox"> <div className="h-80 mx-3 align-items-center remix_ui_terminal_listenOnNetwork custom-control custom-checkbox">
<CustomTooltip placement="top" tooltipId="terminalClear" tooltipClasses="text-nowrap" tooltipText={intl.formatMessage({ id: 'terminal.listenTitle' })}> <input
<input className="custom-control-input"
className="custom-control-input" id="listenNetworkCheck"
id="listenNetworkCheck" onChange={listenOnNetwork}
onChange={listenOnNetwork} type="checkbox"
type="checkbox" disabled={terminalState.isVM}
disabled={terminalState.isVM} />
/>
</CustomTooltip>
<label <label
className="form-check-label custom-control-label text-nowrap" className="form-check-label custom-control-label text-nowrap"
style={{ paddingTop: '0.125rem' }} style={{ paddingTop: '0.125rem' }}
@ -56,7 +54,7 @@ export const RemixUITerminalMenu = (props: RemixUiTerminalProps) => {
</label> </label>
</div> </div>
</CustomTooltip> </CustomTooltip>
<div className="remix_ui_terminal_search d-flex align-items-center h-100"> <div className="remix_ui_terminal_search mr-1 d-flex align-items-center h-100">
<i className="remix_ui_terminal_searchIcon d-flex align-items-center justify-content-center fas fa-search bg-light" aria-hidden="true"></i> <i className="remix_ui_terminal_searchIcon d-flex align-items-center justify-content-center fas fa-search bg-light" aria-hidden="true"></i>
<input <input
onChange={(event) => setSearchInput(event.target.value.trim())} onChange={(event) => setSearchInput(event.target.value.trim())}
@ -68,7 +66,7 @@ export const RemixUITerminalMenu = (props: RemixUiTerminalProps) => {
/> />
</div> </div>
<div className="mx-2 remix_ui_terminal_console" id="clearConsole" data-id="terminalClearConsole" onClick={handleClearConsole}> <div className="mx-2 remix_ui_terminal_console" id="clearConsole" data-id="terminalClearConsole" onClick={handleClearConsole}>
<CustomTooltip placement="top" tooltipId="terminalClear" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="terminal.clearConsole" />}> <CustomTooltip placement="top" tooltipId="terminalClearTerminal" tooltipClasses="text-nowrap" tooltipText={<FormattedMessage id="terminal.clearConsole" />}>
<i className="fas fa-ban" aria-hidden="true"></i> <i className="fas fa-ban" aria-hidden="true"></i>
</CustomTooltip> </CustomTooltip>
</div> </div>

@ -71,10 +71,7 @@ element.style {
font-family : monospace; font-family : monospace;
} }
.remix_ui_terminal_search { .remix_ui_terminal_search {
width : 330px; width : 19rem;
padding-left : 20px;
padding-top : 1px;
padding-bottom : 1px;
} }
.remix_ui_terminal_filter { .remix_ui_terminal_filter {
height : 80%; height : 80%;

Loading…
Cancel
Save