Skip to content
Snippets Groups Projects
Commit 8785aaf5 authored by chris's avatar chris
Browse files

new tool styling

parent ad9b9b85
No related branches found
No related tags found
1 merge request!339new toolgroup files
...@@ -51,7 +51,6 @@ export default { ...@@ -51,7 +51,6 @@ export default {
'Images', 'Images',
'Tables', 'Tables',
'MultipleDropDown', 'MultipleDropDown',
'MultipleChoice',
'FillTheGap', 'FillTheGap',
'FullScreen', 'FullScreen',
], ],
......
...@@ -17,6 +17,7 @@ const DropdownStyled = styled(Dropdown)` ...@@ -17,6 +17,7 @@ const DropdownStyled = styled(Dropdown)`
.Dropdown-control { .Dropdown-control {
border: none; border: none;
padding-top: 12px;
&:hover { &:hover {
box-shadow: none; box-shadow: none;
...@@ -24,8 +25,7 @@ const DropdownStyled = styled(Dropdown)` ...@@ -24,8 +25,7 @@ const DropdownStyled = styled(Dropdown)`
} }
.Dropdown-arrow { .Dropdown-arrow {
right: 25px; top: 17px;
top: 14px;
} }
.Dropdown-menu { .Dropdown-menu {
......
...@@ -2,8 +2,6 @@ import Service from '../../Service'; ...@@ -2,8 +2,6 @@ import Service from '../../Service';
import TableDropDownOptions from './TableDropDownOptions'; import TableDropDownOptions from './TableDropDownOptions';
class EditTableService extends Service { class EditTableService extends Service {
boot() {}
register() { register() {
this.container.bind('TableDropDownOptions').to(TableDropDownOptions); this.container.bind('TableDropDownOptions').to(TableDropDownOptions);
} }
......
...@@ -25,7 +25,7 @@ class MultipleDropDown extends ToolGroup { ...@@ -25,7 +25,7 @@ class MultipleDropDown extends ToolGroup {
view: { main }, view: { main },
} = context; } = context;
const Wrapper = styled.span` const Wrapper = styled.div`
${ReactDropDownStyles}; ${ReactDropDownStyles};
`; `;
const DropdownStyled = styled(Dropdown)` const DropdownStyled = styled(Dropdown)`
...@@ -35,13 +35,19 @@ class MultipleDropDown extends ToolGroup { ...@@ -35,13 +35,19 @@ class MultipleDropDown extends ToolGroup {
pointer-events: ${props => (props.select ? 'default' : 'none')}; pointer-events: ${props => (props.select ? 'default' : 'none')};
.Dropdown-control { .Dropdown-control {
border: none; border: none;
padding-top: 12px;
&:hover {
box-shadow: none;
}
} }
.Dropdown-arrow { .Dropdown-arrow {
right: 25px; top: 17px;
top: 10px;
} }
.Dropdown-menu { .Dropdown-menu {
width: 120%; width: 102%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
...@@ -52,7 +58,6 @@ class MultipleDropDown extends ToolGroup { ...@@ -52,7 +58,6 @@ class MultipleDropDown extends ToolGroup {
`; `;
const { dispatch, state } = view; const { dispatch, state } = view;
console.log('adsasda', this._tools[0]);
const dropDownOptions = [ const dropDownOptions = [
{ label: 'Multiple choice ', value: '0', item: this._tools[0] }, { label: 'Multiple choice ', value: '0', item: this._tools[0] },
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment