Skip to content

Commit 4a0e0d6

Browse files
committed
Move CMS icon into dropdown
1 parent 1fd9e15 commit 4a0e0d6

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

plugins/csv-import/src/App.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ body {
126126
align-items: center;
127127
gap: 10px;
128128
width: 100%;
129+
position: relative;
130+
color: var(--framer-color-text);
129131
}
130132

131133
.collection-icon-container {
@@ -134,7 +136,9 @@ body {
134136
justify-content: center;
135137
width: 20px;
136138
height: 20px;
137-
opacity: 0.5;
139+
position: absolute;
140+
left: 8px;
141+
top: 5px;
138142
}
139143

140144
.collection-creation-container {
@@ -147,22 +151,25 @@ body {
147151
.collection-select {
148152
flex: 1;
149153
min-width: 0;
150-
height: 28px;
154+
padding-left: 33px;
151155
}
152156

153-
.collection-select.error {
157+
.collection-selector.error {
154158
color: #f36;
155-
background-color: color-mix(in srgb, #f36 10%, transparent);
156-
box-shadow: inset 0 0 0 1px #f36;
159+
}
160+
161+
.collection-selector.error .collection-select {
162+
color: inherit;
163+
background-color: color-mix(in srgb, currentColor 10%, transparent);
164+
box-shadow: inset 0 0 0 1px currentColor;
157165
}
158166

159167
input.collection-select {
160-
padding: 0px 16px 1px 8px;
168+
padding: 0px 16px 1px 33px;
161169
}
162170

163171
.error-message {
164172
color: #f36;
165-
padding-left: 30px;
166173
}
167174

168175
/* Manage conflicts screen */

plugins/csv-import/src/components/CollectionSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ export function CollectionSelector({ forceCreate, collection, onCollectionChange
124124
if (isCreatingNew) {
125125
return (
126126
<div className="collection-creation-container">
127-
<div className="collection-selector">
127+
<div className={creationError ? "collection-selector error" : "collection-selector"}>
128128
<div className="collection-icon-container">
129129
<CollectionIcon />
130130
</div>
131131

132132
<input
133133
ref={inputRef}
134134
type="text"
135-
className={creationError ? "collection-select error" : "collection-select"}
135+
className="collection-select"
136136
value={newCollectionName}
137137
onChange={handleCollectionNameChange}
138138
onKeyDown={handleKeyDown}

0 commit comments

Comments
 (0)