Skip to content

Commit f5101e2

Browse files
authored
Merge pull request #241 from ynput/fix/long_project_names_in_sidebar
Auto-expand project sidebar if project name is too long
2 parents 0df3b1c + 7c2fc55 commit f5101e2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/components/Menu/MenuComponents/Menu.styled.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export const Item = styled.li`
137137
position: relative;
138138
user-select: none;
139139
140+
span {
141+
display: inline-block;
142+
}
143+
140144
:hover {
141145
background-color: var(--md-sys-color-surface-container-highest);
142146
}

src/components/ProjectButton/ProjectButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ProjectButton = ({ label, code, onPin, onEdit, className, highlighted, ...
99
tabIndex={0}
1010
className={`${className} ${highlighted ? 'highlighted' : ''}`}
1111
>
12-
<span>{label}</span>
12+
<span style={{ marginRight: 8 }}>{label}</span>
1313
{/* code hides on hover */}
1414
{code && <span className="code">{code}</span>}
1515
{/* hover buttons */}

src/styles/index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,12 @@ a {
756756
}
757757
}
758758

759-
760759
.broken-addon-row {
761760
color: red !important;
762761
font-style: italic;
763762
}
763+
764+
.p-sidebar-left .p-sidebar {
765+
min-width: 20rem;
766+
width: auto;
767+
}

0 commit comments

Comments
 (0)