Skip to content
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

Resizable debugger sidebar #46

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/VirtualDom/Debug.elm
Expand Up @@ -476,9 +476,7 @@ body {

#values {
display: block;
float: left;
height: 100%;
width: calc(100% - 30ch);
margin: 0;
overflow: auto;
cursor: default;
Expand All @@ -491,6 +489,8 @@ body {
height: 100%;
color: white;
background-color: rgb(61, 61, 61);
overflow-x: auto;
resize: horizontal;
}

.debugger-sidebar-controls {
Expand Down
5 changes: 4 additions & 1 deletion src/VirtualDom/History.elm
Expand Up @@ -277,11 +277,14 @@ viewMessage currentIndex index msg =

else
"messages-entry"

messageName =
Native.Debug.messageToString msg
in
VDom.div
[ VDom.class className
, VDom.on "click" (Decode.succeed index)
]
[ VDom.span [VDom.class "messages-entry-content"] [ VDom.text (Native.Debug.messageToString msg) ]
[ VDom.span [VDom.class "messages-entry-content", VDom.title messageName ] [ VDom.text messageName ]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently it seems this would not compile, because VDom.title is missing from helpers.

, VDom.span [VDom.class "messages-entry-index"] [ VDom.text (toString index) ]
]