mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Improves styling
This commit is contained in:
parent
f6fafe3eb3
commit
62c346850c
@ -6,10 +6,13 @@
|
|||||||
transform: translate(0, -50%);
|
transform: translate(0, -50%);
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-width: 2rem !important;
|
|
||||||
|
|
||||||
filter: var(--floating-button-drop-shadow);
|
filter: var(--floating-button-drop-shadow);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: var(--tab-list-text);
|
||||||
|
}
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
left: 0;
|
left: 0;
|
||||||
border-radius: 0 0.5rem 0.5rem 0 !important;
|
border-radius: 0 0.5rem 0.5rem 0 !important;
|
||||||
|
@ -20,19 +20,19 @@
|
|||||||
|
|
||||||
.options-panel-wrapper {
|
.options-panel-wrapper {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
grid-auto-rows: max-content;
|
|
||||||
height: $app-content-height;
|
height: $app-content-height;
|
||||||
width: $options-bar-max-width;
|
width: $options-bar-max-width;
|
||||||
max-width: $options-bar-max-width;
|
max-width: $options-bar-max-width;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow-y: scroll;
|
||||||
|
@include HideScrollbar;
|
||||||
|
|
||||||
.options-panel {
|
.options-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
row-gap: 1rem;
|
row-gap: 1rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
|
||||||
@include HideScrollbar;
|
@include HideScrollbar;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,13 +42,13 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
box-shadow: 0 0 1rem var(--text-color-a3);
|
filter: var(--floating-panel-drop-shadow);
|
||||||
width: calc($options-bar-max-width + 2rem);
|
width: calc($options-bar-max-width + 2rem);
|
||||||
max-width: calc($options-bar-max-width + 2rem);
|
max-width: calc($options-bar-max-width + 2rem);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.options-panel {
|
.options-panel-margin {
|
||||||
padding: 1rem;
|
margin: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
import { BsPinAngle, BsPinAngleFill } from 'react-icons/bs';
|
import { BsPinAngle, BsPinAngleFill } from 'react-icons/bs';
|
||||||
import { CSSTransition } from 'react-transition-group';
|
import { CSSTransition } from 'react-transition-group';
|
||||||
import { RootState, useAppDispatch, useAppSelector } from '../../app/store';
|
import { RootState, useAppDispatch, useAppSelector } from '../../app/store';
|
||||||
import IAIIconButton from '../../common/components/IAIIconButton';
|
|
||||||
import useClickOutsideWatcher from '../../common/hooks/useClickOutsideWatcher';
|
import useClickOutsideWatcher from '../../common/hooks/useClickOutsideWatcher';
|
||||||
import {
|
import {
|
||||||
OptionsState,
|
OptionsState,
|
||||||
@ -120,16 +119,7 @@ const InvokeOptionsPanel = (props: Props) => {
|
|||||||
!shouldPinOptionsPanel ? cancelCloseOptionsPanelTimer : undefined
|
!shouldPinOptionsPanel ? cancelCloseOptionsPanelTimer : undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Tooltip label="Pin Options Panel">
|
<div className="options-panel-margin">
|
||||||
<div
|
|
||||||
className="options-panel-pin-button"
|
|
||||||
data-selected={shouldPinOptionsPanel}
|
|
||||||
onClick={handleClickPinOptionsPanel}
|
|
||||||
>
|
|
||||||
{shouldPinOptionsPanel ? <BsPinAngleFill /> : <BsPinAngle />}
|
|
||||||
</div>
|
|
||||||
</Tooltip>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="options-panel"
|
className="options-panel"
|
||||||
ref={optionsPanelContainerRef}
|
ref={optionsPanelContainerRef}
|
||||||
@ -141,9 +131,19 @@ const InvokeOptionsPanel = (props: Props) => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Tooltip label="Pin Options Panel">
|
||||||
|
<div
|
||||||
|
className="options-panel-pin-button"
|
||||||
|
data-selected={shouldPinOptionsPanel}
|
||||||
|
onClick={handleClickPinOptionsPanel}
|
||||||
|
>
|
||||||
|
{shouldPinOptionsPanel ? <BsPinAngleFill /> : <BsPinAngle />}
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
grid-template-columns: min-content auto;
|
grid-template-columns: min-content auto;
|
||||||
column-gap: 1rem;
|
column-gap: 1rem;
|
||||||
// height: 100%;
|
// height: 100%;
|
||||||
|
height: $app-content-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-tabs-list {
|
.app-tabs-list {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Calc Values
|
// Calc Values
|
||||||
$app-cutoff: 0px;
|
$app-cutoff: 0px;
|
||||||
$app-content-height-cutoff: 4rem; // default: 7rem
|
$app-content-height-cutoff: calc(70px + 1rem); // default: 7rem
|
||||||
|
|
||||||
// Usage Variables
|
// Usage Variables
|
||||||
// app
|
// app
|
||||||
|
Loading…
Reference in New Issue
Block a user