-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dimension measure panel divider resize #196
Conversation
663fd0f
to
11529d2
Compare
cursor: pointer; | ||
|
||
svg { | ||
width: $toggle-width - 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic number - do not know why 3 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I eyeballed it. I think I could leave 3
but should name this expression as $toggle-icon-width
@@ -407,27 +428,60 @@ export class CubeView extends React.Component<CubeViewProps, CubeViewState> { | |||
} | |||
|
|||
getStoredLayout(): CubeViewLayout { | |||
return localStorage.get("cube-view-layout") || { dimensionPanelWidth: 240, pinboardWidth: 240 }; | |||
return localStorage.get("cube-view-layout-ver2") || defaultLayout; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2 seems to be enough
} | ||
|
||
const defaultLayout: CubeViewLayout = { | ||
dimensionPanel: { width: 240 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is rather factPanel (dims + measurements)
Closes #48
Closes #49