Add placeholder as closed text
This commit is contained in:
parent
ea48fba914
commit
acb17112ea
|
@ -92,6 +92,7 @@
|
||||||
}
|
}
|
||||||
: undefined}
|
: undefined}
|
||||||
/>
|
/>
|
||||||
|
{#if expanded}
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
bind:this={promptInput}
|
bind:this={promptInput}
|
||||||
|
@ -101,6 +102,11 @@
|
||||||
on:keydown={handleKeyPress}
|
on:keydown={handleKeyPress}
|
||||||
{disabled}
|
{disabled}
|
||||||
/>
|
/>
|
||||||
|
{:else}
|
||||||
|
<span class="spectrum-ActionButton-label ai-gen-text">
|
||||||
|
{placeholder}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if expanded}
|
{#if expanded}
|
||||||
<div class="action-buttons">
|
<div class="action-buttons">
|
||||||
|
@ -267,6 +273,14 @@
|
||||||
cursor: var(--ai-icon-cursor, pointer);
|
cursor: var(--ai-icon-cursor, pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ai-gen-text {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
transition: opacity 0.2s ease-out;
|
||||||
|
margin-right: var(--spacing-xs);
|
||||||
|
}
|
||||||
|
|
||||||
.prompt-input {
|
.prompt-input {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
Loading…
Reference in New Issue