Skip to content

Commit

Permalink
Fix padding for Tabs on blank project
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra committed Apr 10, 2020
1 parent 1a759b4 commit 12fe55a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions client/app/components/visualizations/editor/TabbedEditor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.visualization-editor-tabs {
.ant-tabs-tab {
padding: 12px 16px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import PropTypes from "prop-types";
import Tabs from "antd/lib/tabs";
import { EditorPropTypes } from "@/visualizations/prop-types";

import "./TabbedEditor.less";

export const UpdateOptionsStrategy = {
replace: (existingOptions, newOptions) => merge({}, newOptions),
shallowMerge: (existingOptions, newOptions) => extend({}, existingOptions, newOptions),
Expand All @@ -18,7 +20,7 @@ export function TabbedEditor({ tabs, options, data, onOptionsChange, ...restProp
tabs = filter(tabs, tab => (isFunction(tab.isAvailable) ? tab.isAvailable(options, data) : true));

return (
<Tabs animated={false} tabBarGutter={0}>
<Tabs className="visualization-editor-tabs" animated={false} tabBarGutter={0}>
{map(tabs, ({ key, title, component: Component }) => (
<Tabs.TabPane key={key} tab={<span data-test={`VisualizationEditor.Tabs.${key}`}>{title}</span>}>
<Component options={options} data={data} onOptionsChange={optionsChanged} {...restProps} />
Expand Down

0 comments on commit 12fe55a

Please sign in to comment.