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

Enhance: Right sidebar [minor change] #9846

Merged
merged 34 commits into from Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5c60582
wip: right sidebar
sprocketc Jul 5, 2023
e41830f
fix: graph height
sprocketc Jul 5, 2023
8fd2891
re-enable scrolling on list
sprocketc Jul 5, 2023
a7c2b1c
style: indentation
sprocketc Jul 5, 2023
8340649
fix: always expand block when added to sidebar
sprocketc Jul 5, 2023
91d1579
fix: show close button on mobile
sprocketc Jul 6, 2023
22cf98c
wip: right sidebar
sprocketc Jul 6, 2023
7cfa2f1
support default and custom icons
sprocketc Jul 7, 2023
0a5b953
fix whiteboard icon
sprocketc Jul 7, 2023
912ab76
fix: header overflow
sprocketc Jul 7, 2023
6790450
remove unneeded dependency
sprocketc Jul 10, 2023
24e1721
fix graph icon
sprocketc Jul 10, 2023
c590031
add middle click action and context menu
sprocketc Jul 10, 2023
253c601
add more context menu actions
sprocketc Jul 10, 2023
efee719
add reordering support
sprocketc Jul 11, 2023
4c67729
fix dropdown visibility
sprocketc Jul 11, 2023
f399c34
dnd fixes and initial state
sprocketc Jul 12, 2023
f6a58c9
varous fixes
sprocketc Jul 12, 2023
596dab2
fix event propagation
sprocketc Jul 13, 2023
cbc04f0
enhance accesibility
sprocketc Jul 13, 2023
d497760
area expanded fix
sprocketc Jul 13, 2023
6c4e9c3
add translations
sprocketc Jul 13, 2023
7262fdc
refactoring
sprocketc Jul 13, 2023
cf14ccf
enhance performance
sprocketc Jul 13, 2023
e4e8f8b
enhance text overflow
sprocketc Jul 13, 2023
1b8822f
fix page link
sprocketc Jul 13, 2023
f216aaa
drag enter fix
sprocketc Jul 13, 2023
029c80a
add rounded corners and transition
sprocketc Jul 13, 2023
848540d
add keyboard shortcuts icon
sprocketc Jul 13, 2023
ca900ca
revert left sidebar change
sprocketc Jul 14, 2023
ed5d2ee
revert initial sidebar state changes
sprocketc Jul 24, 2023
e2d09c0
fix border radius
sprocketc Jul 28, 2023
835dd4e
fix: border and rounded corners
sprocketc Aug 3, 2023
ae3831a
fix: dnd delay
sprocketc Aug 3, 2023
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
94 changes: 85 additions & 9 deletions src/main/frontend/components/container.css
Expand Up @@ -531,14 +531,13 @@ html[data-theme='dark'] {
.cp__right-sidebar {
z-index: var(--ls-z-index-level-1);
transition: width 0.3s;
background-color: var(--ls-secondary-background-color, #d8e1e8);
position: relative;
user-select: none;

.resizer {
@apply absolute top-0 bottom-0;
touch-action: none;
left: 0;
left: 2px;
width: 4px;
user-select: none;
cursor: col-resize !important;
Expand Down Expand Up @@ -592,7 +591,6 @@ html[data-theme='dark'] {
top: 0;
left: 0;
right: 0;
background-color: var(--ls-secondary-background-color, #d8e1e8);
z-index: 999;
user-select: none;
-webkit-app-region: drag;
Expand Down Expand Up @@ -621,15 +619,93 @@ html[data-theme='dark'] {
margin-left: 12px;
}

.sidebar-drop-indicator {
@apply relative;
height: 8px;

&::after {
@apply absolute block w-full rounded;
top: 2px;
height: 4px;
content: " ";
transition: background-color 200ms;
}

&.drag-over {
&::after {
background-color: var(--ls-active-primary-color);
}
}
}

.sidebar-item {
@apply p-4;
@apply relative;
flex: 1 1;
min-height: 100px;

.close {
transform: scale(0.8);
transition: transform 0.1s;
.sidebar-item-header {
white-space: nowrap;

&:hover {
transform: scale(1);
.breadcrumb {
margin-top: 0;
margin-bottom: 0;
text-overflow: ellipsis;
overflow: hidden;
}
}

.sidebar-item-drop-area {
@apply flex flex-col absolute h-full w-full;
}

.sidebar-item-drop-area-overlay {
flex: 1 1 50%;
}

&.item-type-block .sidebar-item-header {
background: linear-gradient(0deg, var(--ls-secondary-background-color), var(--ls-tertiary-background-color));
}

&.collapsed {
flex: 0;
overflow: initial;
min-height: initial;

&.item-type-block .sidebar-item-header {
background: var(--ls-tertiary-background-color);
}
}

&:not(:hover) {
::-webkit-scrollbar-thumb,
::-webkit-scrollbar,
::-webkit-scrollbar-thumb:active {
background-color: transparent;
}
}

.initial {
flex: 1;
}

.item-actions {
@apply h-full;

.button {
@apply hidden p-0 ml-2 flex items-center;

&:focus {
@apply flex;
}
}
}

.is-mobile &,
&:hover {
.item-actions {
.button {
@apply flex;
}
}
}
}
Expand Down