aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.scss
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-16 19:02:56 -0400
committerbobzel <zzzman@gmail.com>2025-03-16 19:02:56 -0400
commitdf708c90d8356934d2e3d9123129c761d328c1fe (patch)
tree98b0588710ac8ca00c303960da0851614aacf597 /src/client/views/nodes/ImageBox.scss
parent7d9fae09e8906e5636f6ea695ad560797b08d023 (diff)
parentf4042257be7359734a0dd35cedbf03fe4aa14cf1 (diff)
Merge branch 'DocCreatorMenu-work' of https://github.com/brown-dash/Dash-Web into DocCreatorMenu-work
Diffstat (limited to 'src/client/views/nodes/ImageBox.scss')
-rw-r--r--src/client/views/nodes/ImageBox.scss106
1 files changed, 106 insertions, 0 deletions
diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss
index 3ffda5a35..3d6942e6f 100644
--- a/src/client/views/nodes/ImageBox.scss
+++ b/src/client/views/nodes/ImageBox.scss
@@ -40,6 +40,8 @@
max-height: 100%;
pointer-events: inherit;
background: transparent;
+ z-index: 0;
+ // z-index: -10000; // bcz: not sure why this was here. it broke dropping images on the image box alternate bullseye icon.
img {
height: auto;
@@ -102,6 +104,10 @@
margin: 0 auto;
display: flex;
height: 100%;
+ img {
+ object-fit: contain;
+ height: 100%;
+ }
.imageBox-fadeBlocker,
.imageBox-fadeBlocker-hover {
@@ -121,6 +127,7 @@
}
}
}
+.imageBox-regenerateDropTarget,
.imageBox-alternateDropTarget {
position: absolute;
color: white;
@@ -128,7 +135,19 @@
right: 0;
bottom: 0;
z-index: 2;
+ transform-origin: bottom right;
cursor: default;
+ > svg {
+ width: 100%;
+ height: 100%;
+ }
+}
+.imageBox-regenerateDropTarget {
+ right: 30;
+ border-radius: 50%;
+ svg {
+ border-radius: 50%;
+ }
}
.imageBox-fader img {
@@ -139,3 +158,90 @@
.imageBox-fadeBlocker-hover {
opacity: 0;
}
+
+.imageBox-aiView-history {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ text-align: center;
+
+ .imageBox-aiView-img {
+ width: 100%;
+ padding: 5px;
+
+ &:hover {
+ filter: brightness(0.8);
+ }
+ }
+
+ .imageBox-aiView-caption {
+ font-size: 7px;
+ }
+}
+
+.imageBox-aiView {
+ text-align: center;
+ font-weight: bold;
+ transform-origin: top left;
+ width: 100%;
+
+ .imageBox-aiView-subtitle {
+ position: relative;
+ align-content: center;
+ max-width: 10%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .imageBox-aiView-regenerate,
+ .imageBox-aiView-options {
+ display: flex;
+ align-items: center;
+ flex-direction: row;
+ gap: 5px;
+ width: 100%;
+ padding: 0 10;
+ .imageBox-aiView-regenerate-createBtn {
+ max-width: 20%;
+ .button-container {
+ width: 100% !important;
+ justify-content: left !important;
+ }
+ }
+ }
+
+ .imageBox-aiView-firefly {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 15%;
+ width: 100%;
+ }
+ .imageBox-aiView-regenerate-send {
+ max-width: 10%;
+ }
+
+ .imageBox-aiView-strength {
+ text-align: center;
+ align-items: center;
+ display: flex;
+ max-width: 90%;
+ width: 100%;
+ .imageBox-aiView-similarity {
+ max-width: 65;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ width: 100%;
+ }
+ }
+ .imageBox-aiView-slider {
+ width: 90%;
+ margin-left: 5px;
+ }
+ .imageBox-aiView-input {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 65%;
+ width: 100%;
+ color: black;
+ }
+}