-
Notifications
You must be signed in to change notification settings - Fork 130
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
Minimap should never overlap text in open buffer in absolute mode #344
Comments
Make sense, I'll see how I can do that. Ideally you want to only have an opaque background behind the rendered lines and not the full minimap, which mean I'll have to make some additional draw, the worst would be to make the whole minimap opaque as it would hide end of lines even when the minimap's content doesn't occupy the full height. |
I think it would probably be easier to adjust the height of the minimap in absolute mode to fit the |
@abe33 Would like to see this enhancement, having a setting to configure a background fill colour/opacity for the minimap would be useful too when not in absolute mode. The theme I'm using has no distinction between the editor background and where the minimap area begins, when not in absolute mode text just disappears and it may not always be evident that it continues unless I notice the small horizontal scroll bar. Alternatively a border/separator line would help. |
If you want that you can use custom the background-color of minimap. https://github.com/atom-minimap/minimap#changing-the-minimaps-background atom-text-editor atom-text-editor-minimap,
atom-text-editor::shadow atom-text-editor-minimap {
background: rgb(40, 44, 52);
} |
Closed. You can re-open it if the issue is still here. |
Whoops, sorry @fundon – this suggestion changed a bit from my initial post. What I realized I was really asking for was to expand the text editor width in absolute mode to make it so the minimap never overlaps an open buffer. So just changing the background color manually doesn't really fit this use case. Would you mind reopening? 😄 |
I got myself in the same situation as @mnquintana. I found a solution that suits for me, but only because i only use the "absolute mode. The idea is to add a "gutter" on the right, to let the "text-editor" breathe. I achieved it as following, editing the atom-text-editor::shadow, atom-text-editor, html {
.scroll-view {
margin-right: 10%;
}
} The margin is set to 10%, since it is the width set for the The main issue is the margin will apply in both modes, absolute or not. It should only be there in absolute mode. Without setting the `.absolute' class at an upper level, I don't see how to achieve the expected behaviour. |
+1 |
I'm loving the new absolute mode, but when I originally submitted #337, I had been thinking the minimap would have an opaque background, so:
Instead of:
That said, I'm not terribly opposed to the current styling, but it is kinda hard to read text behind the minimap, and I could see it being worse with other syntax themes.
The text was updated successfully, but these errors were encountered: