Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed regression in styling of segment and skeleton tree tab. [#8307](https://github.com/scalableminds/webknossos/pull/8307)
- Fixed the template for neuron inferral using a custom workflow. [#8312](https://github.com/scalableminds/webknossos/pull/8312)
- Fixed that the list of processing jobs crashed for deleted job types. [#8300](https://github.com/scalableminds/webknossos/pull/8300)
- Fixed an issue where you could not maximize or reposition the 3D/XZ viewport in Safari. [#8337](https://github.com/scalableminds/webknossos/pull/8337)

### Removed
- Removed support for HTTP API versions 3 and 4. [#8075](https://github.com/scalableminds/webknossos/pull/8075)
Expand Down
22 changes: 17 additions & 5 deletions frontend/stylesheets/flex_layout_overwrites.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
background-color: transparent;
color: unset;
}

.flexlayout__tab_border,
.flexlayout__tabset_tabbar_outer_top,
.flexlayout__tabset-selected {
Expand All @@ -18,6 +19,7 @@
.flexlayout__border_left {
border-right: none;
}

.flexlayout__border_right {
border-left: none;
}
Expand All @@ -26,19 +28,23 @@
border: none !important;
}

// The horizontal/vertical splitter is the UI element that is used to resize the borders between the tabs/viewports.
.flexlayout__splitter:hover,
.flexlayout__splitter_drag {
background-color: var(--ant-color-border-secondary)
}

.flexlayout__splitter {
z-index: 21;
background-color: var(--ant-color-border);

&::before {
content: "";
background-color: transparent;
}
}

// We configure the splitter to be almost invisible in code (just 1px) and use CSS transparent ::before pseudo to increase to mouse click/drag target instead.
.flexlayout__splitter_vert::before {
width: 11px;
display: inline-block;
Expand All @@ -56,8 +62,8 @@
top: -15px;
}

.flexlayout__tab_button_content {
// On Safari, this ensures that the button is easily clickable
.flexlayout__tabset_tabbar_outer {
// On Safari, this ensures that the "maximize/minimize viewport"-button is easily clickable and a tab header/name can be grabbed for repositioning.
// (otherwise, the resizer becomes the default target for some reason).
z-index: 100;
}
Expand Down Expand Up @@ -87,26 +93,31 @@
font-size: 14px;
font-weight: 400;
font-family: @font-family;

&:hover {
cursor: move;
}

background-color: var(--ant-color-bg-base);

.flexlayout__tab_button_content {
background-color: var(--ant-color-bg-base);
color: var(--ant-color-text-secondary);
border-bottom: 1px solid transparent;
}

&.flexlayout__tab_button--selected {
background-color: var(--ant-color-bg-base);

.flexlayout__tab_button_content {
background-color: var(--ant-color-bg-base);
color: var(--ant-color-link);
}
}

&:hover {
background-color: var(--ant-color-bg-base);

.flexlayout__tab_button_content {
background-color: var(--ant-color-bg-base);
color: var(--ant-color-link);
Expand Down Expand Up @@ -136,7 +147,8 @@
.hide_first_splitter_border {
pointer-events: none;
}

// This re-enables all pointer event for all other border splitters that are not the first (left most).
.hide_first_splitter_border ~ .hide_first_splitter_border {
.hide_first_splitter_border~.hide_first_splitter_border {
pointer-events: all;
}
}