Skip to content

Commit b7aa023

Browse files
committed
style: change select width (#331)
1 parent 61d70f5 commit b7aa023

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function ConversationCard(props) {
211211
className={props.draggable ? 'gpt-header draggable' : 'gpt-header'}
212212
style="padding:15px;user-select:none;"
213213
>
214-
<span className="gpt-util-group">
214+
<span className="gpt-util-group" style={props.notClampSize ? {} : { flexGrow: 1 }}>
215215
{props.closeable ? (
216216
<XLg
217217
className="gpt-util-icon"
@@ -235,7 +235,7 @@ function ConversationCard(props) {
235235
<img src={logo} style="user-select:none;width:20px;height:20px;" />
236236
)}
237237
<select
238-
style={props.notClampSize ? {} : { width: windowSize[0] * 0.15 + 'px' }}
238+
style={props.notClampSize ? {} : { width: 0, flexGrow: 1 }}
239239
className="normal-button"
240240
required
241241
onChange={(e) => {
@@ -268,7 +268,19 @@ function ConversationCard(props) {
268268
})}
269269
</select>
270270
</span>
271-
{!props.draggable && (
271+
<span className="gpt-util-group" style={{ flexGrow: 1, justifyContent: 'flex-end' }}>
272+
{session && session.conversationId && (
273+
<a
274+
title={t('Continue on official website')}
275+
href={'https://chat.openai.com/chat/' + session.conversationId}
276+
target="_blank"
277+
rel="nofollow noopener noreferrer"
278+
className="gpt-util-icon"
279+
style="color: inherit;"
280+
>
281+
<LinkExternalIcon size={16} />
282+
</a>
283+
)}
272284
<WindowDesktop
273285
className="gpt-util-icon"
274286
title={t('Float the Window')}
@@ -289,20 +301,6 @@ function ConversationCard(props) {
289301
)
290302
}}
291303
/>
292-
)}
293-
<span className="gpt-util-group">
294-
{session && session.conversationId && (
295-
<a
296-
title={t('Continue on official website')}
297-
href={'https://chat.openai.com/chat/' + session.conversationId}
298-
target="_blank"
299-
rel="nofollow noopener noreferrer"
300-
className="gpt-util-icon"
301-
style="color: inherit;"
302-
>
303-
<LinkExternalIcon size={16} />
304-
</a>
305-
)}
306304
<DeleteButton
307305
size={16}
308306
text={t('Clear Conversation')}

0 commit comments

Comments
 (0)