mirror of
https://github.com/harness/drone.git
synced 2025-05-16 17:09:58 +08:00
fixing filter UX
This commit is contained in:
parent
c7ad30394e
commit
3059b3be9f
@ -52,3 +52,8 @@
|
||||
.panelContent {
|
||||
height: calc(100% - var(--spacing-large));
|
||||
}
|
||||
|
||||
.search {
|
||||
width: 50%;
|
||||
height: 35px;
|
||||
}
|
||||
|
@ -9,3 +9,4 @@ export declare const pluginDesc: string
|
||||
export declare const pluginDetailsPanel: string
|
||||
export declare const pluginIcon: string
|
||||
export declare const plugins: string
|
||||
export declare const search: string
|
||||
|
@ -191,19 +191,28 @@ export const PluginsPanel = ({ onPluginAddUpdate }: PluginsPanelInterface): JSX.
|
||||
</Container>
|
||||
) : (
|
||||
<Layout.Vertical spacing="small" padding={{ top: 'small' }}>
|
||||
<Layout.Horizontal
|
||||
flex={{ justifyContent: 'flex-start', alignItems: 'center' }}
|
||||
spacing="small"
|
||||
padding={{ top: 'medium', bottom: 'medium', left: 'medium' }}>
|
||||
<Icon
|
||||
name="arrow-left"
|
||||
size={18}
|
||||
onClick={() => {
|
||||
setPanelView(PluginPanelView.Category)
|
||||
}}
|
||||
className={css.arrow}
|
||||
<Layout.Horizontal flex={{ justifyContent: 'space-between' }} padding={{ left: 'small', right: 'xlarge' }}>
|
||||
<Layout.Horizontal
|
||||
flex={{ justifyContent: 'flex-start', alignItems: 'center' }}
|
||||
spacing="small"
|
||||
padding={{ top: 'medium', bottom: 'medium', left: 'medium' }}>
|
||||
<Icon
|
||||
name="arrow-left"
|
||||
size={18}
|
||||
onClick={() => {
|
||||
setPanelView(PluginPanelView.Category)
|
||||
}}
|
||||
className={css.arrow}
|
||||
/>
|
||||
<Text font={{ variation: FontVariation.H5 }}>{getString('plugins.select')}</Text>
|
||||
</Layout.Horizontal>
|
||||
<ExpandingSearchInput
|
||||
autoFocus={true}
|
||||
alwaysExpanded={true}
|
||||
defaultValue={query}
|
||||
onChange={setQuery}
|
||||
className={css.search}
|
||||
/>
|
||||
<ExpandingSearchInput autoFocus={true} alwaysExpanded={true} defaultValue={query} onChange={setQuery} />
|
||||
</Layout.Horizontal>
|
||||
<Container className={css.plugins}>
|
||||
{plugins?.map((pluginItem: TypesPlugin) => {
|
||||
|
@ -425,6 +425,7 @@ export interface StringsMap {
|
||||
'pipelines.updatePipelineSuccess': string
|
||||
'pipelines.updated': string
|
||||
'pipelines.yamlPath': string
|
||||
'plugins.select': string
|
||||
'plugins.stepLabel': string
|
||||
'plugins.title': string
|
||||
'pluginsPanel.plugins.helptext': string
|
||||
|
@ -712,6 +712,7 @@ run: Run
|
||||
plugins:
|
||||
title: Plugins
|
||||
stepLabel: step
|
||||
select: Select a plugin
|
||||
pluginsPanel:
|
||||
plugins:
|
||||
helptext: Run a plugin step
|
||||
|
Loading…
Reference in New Issue
Block a user