Skip to content

Commit f224a85

Browse files
committed
tweak: stop showing ellipsis in the text-boxes in the right sidebar and
make search text in header not extend outside of the search-box
1 parent 848ff65 commit f224a85

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/renderer/components/RightBrowseSidebar.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export class RightBrowseSidebar extends React.Component<IRightBrowseSidebarProps
9090
const dateAdded = new Date(game.dateAdded).toUTCString();
9191
const screenshotSrc = this.props.gameImages.getScreenshotPath(game.title, game.platform);
9292
return (
93-
<div className={'browse-right-sidebar simple-scroll'+(canEdit?' browse-right-sidebar--edit-enabled':'')}>
93+
<div className={'browse-right-sidebar simple-scroll '+
94+
(canEdit ? 'browse-right-sidebar--edit-enabled' : 'browse-right-sidebar--edit-disabled')}>
9495
{/* -- Title & Developer(s) -- */}
9596
<div className='browse-right-sidebar__section'>
9697
<div className='browse-right-sidebar__row'>
@@ -119,10 +120,10 @@ export class RightBrowseSidebar extends React.Component<IRightBrowseSidebarProps
119120
<>
120121
{/* "Edit" Button */}
121122
{ isPlaceholder ? undefined : (
122-
<div className='browse-right-sidebar__title-row__buttons__edit-button'
123-
title='Edit Game' onClick={this.props.onEditClick}>
124-
<OpenIcon icon='pencil' />
125-
</div>
123+
<div className='browse-right-sidebar__title-row__buttons__edit-button'
124+
title='Edit Game' onClick={this.props.onEditClick}>
125+
<OpenIcon icon='pencil' />
126+
</div>
126127
) }
127128
{/* "Remove From Playlist" Button */}
128129
{ gamePlaylistEntry ? (

static/renderer/styles/styles.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -454,13 +454,14 @@ body {
454454
width: 12em;
455455
padding: 0.25em;
456456
margin-right: 0.5em;
457+
overflow: hidden;
457458
/* Pimp */
458459
border: 1px solid var(--theme__search-bar__outline-color);
459460
background-color: var(--theme__background-color);
460461
}
461462
.header__search__input, .header__search__input:active {
462463
font-size: 1em;
463-
/* Pimp */
464+
width: 100%;
464465
color: var(--theme__text-color);
465466
background: none;
466467
border: none;
@@ -969,7 +970,7 @@ body {
969970
flex: 0 0 auto;
970971
white-space: pre;
971972
}
972-
.browse-right-sidebar__row--one-line > :last-child {
973+
.browse-right-sidebar--edit-disabled .browse-right-sidebar__row--one-line > :last-child {
973974
flex: 1 1 auto;
974975
text-overflow: ellipsis;
975976
overflow: hidden;
@@ -981,7 +982,7 @@ body {
981982
.browse-right-sidebar__row--additional-applications-name {
982983
display: flex;
983984
}
984-
.browse-right-sidebar__row--additional-applications-name > :first-child {
985+
.browse-right-sidebar--edit-disabled .browse-right-sidebar__row--additional-applications-name > :first-child {
985986
flex: 1 1 auto;
986987
overflow: hidden;
987988
text-overflow: ellipsis;
@@ -1007,7 +1008,7 @@ body {
10071008
display: block;
10081009
overflow-y: visible;
10091010
}
1010-
.browse-right-sidebar__title-row__title > * {
1011+
.browse-right-sidebar--edit-disabled .browse-right-sidebar__title-row__title > * {
10111012
overflow-x: hidden;
10121013
white-space: nowrap;
10131014
text-overflow: ellipsis;

0 commit comments

Comments
 (0)