LearnNewsExamplesServices
Frontmatter
id5848
titletheme-neo-light: splitter styling
stateClosed
labels
bug
assigneestobiu
createdAtSep 1, 2024, 1:53 PM
updatedAtSep 1, 2024, 2:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/5848
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 1, 2024, 2:31 PM

theme-neo-light: splitter styling

Closed v8.1.0 bug
tobiu
tobiu commented on Sep 1, 2024, 1:53 PM

some custom overrides got into the splitter styling which are problematic:

    .neo-splitter {
        opacity: 1;
        margin: 8px 2px;
        border-radius: 100px;
        border: unset !important;

        &:hover, &:active {
            background-color: #5595F5 !important;
        }
    }

    .neo-dragproxy {
        &.neo-splitter {
            background-color: #5595F5 !important;
        }
    }

Screenshot 2024-09-01 at 13 46 31

while the design might be ok for vertical splitters, the margin will look odd for horizontal ones.

another problem is that the dragProxy logic does not honor it yet:

Screenshot 2024-09-01 at 13 47 29

so dragging moves the content too far to the bottom.

i will move the possible changes into the theme vars and remove the margin for now.

@mxmrtns: please create a new ticket in case you would like to see a proper implementation for border-radius & margins.

tobiu added the bug label on Sep 1, 2024, 1:53 PM
tobiu assigned to @tobiu on Sep 1, 2024, 1:53 PM
tobiu referenced in commit 089d8a4 - "theme-neo-light: splitter styling #5848" on Sep 1, 2024, 2:28 PM
tobiu
tobiu Sep 1, 2024, 2:31 PM

i changed my mind and did the follow-up part right away.

3 new theming vars for all themes:

    --splitter-border-radius    : 5px;
    --splitter-margin-horizontal: 2px 8px;
    --splitter-margin-vertical  : 8px 2px;

the positioning bug was easy to fix: getBoundingClientRect() already adds margins to positions, so it would get added twice unless we nullify it for the proxy.

look into the last commit for details.

Screenshot 2024-09-01 at 14 26 56

Screenshot 2024-09-01 at 14 27 14

tobiu closed this issue on Sep 1, 2024, 2:31 PM