Skip to content

Commit f20a912

Browse files
Set max width on notebook dropdown
Signed-off-by: Andy Jakubowski <[email protected]>
1 parent 0622220 commit f20a912

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)