detail panel
This commit is contained in:
+58
-22
@@ -44,6 +44,7 @@
|
||||
--danger-border: color-mix(in oklch, var(--danger) 45%, transparent);
|
||||
--danger-soft: color-mix(in oklch, var(--danger) 12%, transparent);
|
||||
--danger-subtle: color-mix(in oklch, var(--danger) 8%, transparent);
|
||||
--detail-panel-width: 30em;
|
||||
|
||||
/* --- Explorer states --- */
|
||||
--row-hover-bg: color-mix(in oklch, var(--accent) 6%, transparent);
|
||||
@@ -271,22 +272,18 @@ button.danger:hover:not([disabled]) {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 20rem minmax(0, 1fr);
|
||||
min-height: 0;
|
||||
min-height: 100vh;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.documents-main .main-content--documents {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 30rem;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.documents-main .main-content--documents > * {
|
||||
@@ -294,6 +291,14 @@ button.danger:hover:not([disabled]) {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.documents-main .main-content--documents > *:not(.detail-panel) {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.documents-main .main-content--documents.main-content--has-detail {
|
||||
padding-right: var(--detail-panel-width);
|
||||
}
|
||||
|
||||
.panels-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
@@ -538,13 +543,15 @@ button.danger:hover:not([disabled]) {
|
||||
|
||||
.tags-table__edit-controls {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: flex-start;
|
||||
padding: 0.25rem;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.tags-table__row-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: flex-start;
|
||||
padding: 0.25rem;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
@@ -1495,22 +1502,44 @@ button.danger:hover:not([disabled]) {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.detail-panel {
|
||||
position: relative;
|
||||
padding: 1.25rem;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 0 24px var(--shadow-faint);
|
||||
.panel.detail-panel {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: var(--detail-panel-width);
|
||||
min-height: 100vh;
|
||||
height: 100%;
|
||||
height: 100%;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 0 24px var(--shadow-soft);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.detail-panel .column-body {
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
padding: 0.25rem;
|
||||
gap: 0.5rem;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.panel-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.detail-panel .panel-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.detail-panel .column-body.scrollable {
|
||||
overflow: visible;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.detail-actions {
|
||||
@@ -1990,7 +2019,8 @@ form.inline {
|
||||
|
||||
.modal__actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
justify-content: flex-start;
|
||||
padding: 0.25rem;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
@@ -2014,6 +2044,7 @@ form.inline {
|
||||
}
|
||||
.login-screen {
|
||||
min-height: 100vh;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -2146,3 +2177,8 @@ form.inline {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.panel-header .icon-button svg {
|
||||
width: 1.41rem;
|
||||
height: 1.41rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user