Files
deepseek-harness/packages/client/ui-attachment/src/AttachmentRail.module.css
T

123 lines
2.3 KiB
CSS

.root {
position: relative;
min-width: 0;
}
.rail {
display: flex;
align-items: stretch;
gap: 10px;
overflow-x: auto;
overflow-y: hidden;
/* Edge arrows page the overflow; the scrollbar stays hidden (both engines). */
scrollbar-width: none;
/* The rail scrolls on the composer's elevated input surface: bind the l2
pair (ui-theme styles/scrollbar.css rebinding contract) so anything that
does draw a thumb here matches the surface. */
--dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
--dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
}
.rail::-webkit-scrollbar {
display: none;
}
.item {
flex: none;
height: 64px;
}
.thumbnail {
width: 64px;
height: 64px;
padding: 0;
overflow: hidden;
border: 0.5px solid var(--dsw-alias-border-l2-darkmode-thin);
border-radius: var(--dsw-radius-xl);
background: var(--dsw-alias-interactive-bg-hover);
cursor: zoom-in;
}
.thumbnail img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.remove {
position: absolute;
top: 4px;
right: 4px;
z-index: 1;
display: grid;
place-items: center;
width: 18px;
height: 18px;
padding: 0;
border: none;
border-radius: 50%;
corner-shape: round;
background: var(--dsw-alias-button-contrast-fill);
color: var(--dsw-alias-label-primary-inverted);
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
.remove:focus-visible {
opacity: 1;
}
@media (hover: hover) {
.item:hover .remove {
opacity: 1;
}
}
/* Touch surfaces have no hover to reveal the control. */
@media (hover: none), (pointer: coarse) {
.remove {
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.remove {
transition: none;
}
}
.arrow {
position: absolute;
top: 50%;
z-index: 2;
display: grid;
place-items: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
--dsw-elevation-stroke-color: var(--dsw-alias-border-l2-darkmode-thin);
border-radius: 999px;
corner-shape: round;
background: var(--dsw-specific-input-major);
color: var(--dsw-alias-label-secondary);
box-shadow: var(--dsw-elevation-panel);
cursor: pointer;
transform: translateY(-50%);
}
@media (hover: hover) {
.arrow:hover {
background: var(--dsw-alias-interactive-bg-hover-solid);
}
}
.arrowLeft {
left: 4px;
}
.arrowRight {
right: 4px;
}