Skip to content

Commit 7cbb8a9

Browse files
Set max width on notebook dropdown
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
1 parent ca53a42 commit 7cbb8a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,17 @@ class NotebookPicker extends ReactWidget {
115115

116116
return (
117117
<HTMLSelect
118+
id="deepnote-notebook-picker"
118119
value={this.selected ?? '-'}
119120
onChange={this.handleChange}
120121
onKeyDown={() => {}}
121122
aria-label="Select active notebook"
122123
title="Select active notebook"
124+
style={{
125+
maxWidth: '120px',
126+
textOverflow: 'ellipsis',
127+
whiteSpace: 'nowrap'
128+
}}
123129
>
124130
{names.length === 0 ? (
125131
<option value="-">-</option>

0 commit comments

Comments
 (0)