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

Make preview and load draggable #3146

Merged
merged 1 commit into from
Sep 3, 2024
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 apps/zui/src/views/preview-load-modal/shaper.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
align-items: center;
justify-content: space-between;
padding: 0 18px;
-webkit-app-region: drag;
}

:global(.is-mac) .toolbar {
Expand Down
48 changes: 26 additions & 22 deletions apps/zui/src/views/preview-load-modal/sidebar.module.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
.aside {
grid-column: 2 / 3;
position: relative;
min-width: 0;
grid-row: span 2;
padding: 0;
display: grid;
grid-template-rows: min-content 1fr min-content;
grid-column: 2 / 3;
position: relative;
min-width: 0;
grid-row: span 2;
padding: 0;
display: grid;
grid-template-rows: min-content 1fr min-content;
}

.aside header {
-webkit-app-region: drag;
}

.formTitle {
user-select: none;
margin: 2rem auto 1em auto;
padding: 0 calc(18px + var(--form-border-radius));
font-size: 20px;
font-weight: 900;
text-align: center;
width: max-content;
user-select: none;
margin: 2rem auto 1em auto;
padding: 0 calc(18px + var(--form-border-radius));
font-size: 20px;
font-weight: 900;
text-align: center;
width: max-content;
}

.formTitle hr {
border: none;
border-top: 2px solid var(--primary-color);
border: none;
border-top: 2px solid var(--primary-color);
}

.sidebarDragAnchor {
background-color: transparent;
transition: all 0ms;
background-color: transparent;
transition: all 0ms;
}

.sidebarDragAnchor:hover {
transition: all 500ms 200ms;
background-color: var(--primary-color);
transition: all 500ms 200ms;
background-color: var(--primary-color);
}

.sidebarDragAnchor:active {
transition: all 0s;
background-color: var(--primary-color-dark);
transition: all 0s;
background-color: var(--primary-color-dark);
}
Loading