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