Skip to content

Commit ea2bc21

Browse files
committed
Adjust tab padding and new tab tooltip offset in PromptField Tabs
- it's easy to create new tab by mistake, when we really wanted to clear/close └── packages └── ui └── src └── components └── editor └── common └── prompts ├── PromptField │ ├── PromptField.module.scss │ ├── PromptField.stories.tsx │ ├── PromptField.tsx │ ├── components │ │ ├── CompletedTasks │ │ │ ├── CompletedTasks.module.scss │ │ │ ├── CompletedTasks.tsx │ │ │ └── index.ts │ │ ├── Footer │ │ │ ├── Footer.module.scss │ │ │ ├── Footer.tsx │ │ │ └── index.ts │ │ └── Tabs │ │ ├── Tabs.module.scss │ │ ├── Tabs.tsx │ │ └── index.ts │ ├── hooks │ │ ├── use-drag-drop.ts │ │ ├── use-dropdown.ts │ │ ├── use-ghost-text.ts │ │ ├── use-handlers │ │ │ ├── handle-copy.ts │ │ │ ├── handle-cut.ts │ │ │ ├── handle-input-change.ts │ │ │ ├── handle-input-click.ts │ │ │ ├── handle-key-down.ts │ │ │ ├── handle-paste.ts │ │ │ ├── handle-submit.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ ├── use-handlers.ts │ │ │ └── utils.ts │ │ └── use-keyboard-shortcuts.ts │ └── index.ts ├── Template │ ├── Template.module.scss │ ├── Template.tsx │ └── index.ts └── shared └── symbols ├── caret.ts ├── get-highlighted-text.tsx ├── index.ts ├── position-mapping.ts ├── prompt-symbols.module.scss ├── reconstruct-raw-value.ts └── use-symbol-deletion.ts
1 parent 2f46643 commit ea2bc21

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/ui/src/components/editor/common/prompts/PromptField/components/Tabs/Tabs.module.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
opacity: var(--dimmed-opacity);
2121

2222
&--new {
23-
padding-right: 14px;
23+
padding-right: 9px;
2424
padding-left: 7px;
2525
}
2626

2727
&--close {
28+
padding-left: 5px;
2829
padding-right: 10px;
2930

3031
.tabs__tab__icon {

‎packages/ui/src/components/editor/common/prompts/PromptField/components/Tabs/Tabs.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const Tabs = forwardRef<TabsRef, Props>((props, ref) => {
9494
message={props.translations.new_tab}
9595
position="bottom"
9696
align="right"
97-
offset={6}
97+
offset={1}
9898
/>
9999
)}
100100
<div className={styles['tabs__tab__icon']} />

0 commit comments

Comments
 (0)