Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Padding Between bookmarks should be narrower
Browse files Browse the repository at this point in the history
  • Loading branch information
dlion committed May 23, 2016
1 parent aa50938 commit db90011
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class GeneralTab extends ImmutableComponent {
<SettingsList dataL10nId='bookmarkToolbarSettings'>
<SettingCheckbox dataL10nId='bookmarkToolbar' prefKey={settings.SHOW_BOOKMARKS_TOOLBAR} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
<SettingCheckbox dataL10nId='bookmarkToolbarShowFavicon' prefKey={settings.SHOW_BOOKMARKS_TOOLBAR_FAVICON} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
<SettingCheckbox dataL10nId='bookmarkToolbarShowOnlyFavicon' style={{ visibility: (getSetting(settings.SHOW_BOOKMARKS_TOOLBAR_FAVICON, this.props.settings) === true ? 'visible' : 'hidden') }} prefKey={settings.SHOW_BOOKMARKS_TOOLBAR_ONLY_FAVICON} settings={getSetting(settings.SHOW_BOOKMARKS_TOOLBAR_FAVICON, this.props.settings) === true ? this.props.settings : false} onChangeSetting={this.props.onChangeSetting} />
<SettingCheckbox dataL10nId='bookmarkToolbarShowOnlyFavicon' style={{ visibility: (getSetting(settings.SHOW_BOOKMARKS_TOOLBAR_FAVICON, this.props.settings) === true ? 'visible' : 'hidden') }} prefKey={settings.SHOW_BOOKMARKS_TOOLBAR_ONLY_FAVICON} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
</SettingsList>
<SettingsList dataL10nId='appearanceSettings'>
<SettingCheckbox dataL10nId='showHomeButton' prefKey={settings.SHOW_HOME_BUTTON} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
Expand Down
3 changes: 2 additions & 1 deletion js/components/bookmarksToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class BookmarkToolbarButton extends ImmutableComponent {
bookmarkToolbarButton: true,
draggingOverLeft: this.isDraggingOverLeft && !this.isExpanded,
draggingOverRight: this.isDraggingOverRight && !this.isExpanded,
isDragging: this.isDragging
isDragging: this.isDragging,
showOnlyFavicon: showFavicon && showOnlyFavicon
})}
draggable
ref={(node) => { this.bookmarkNode = node }}
Expand Down
10 changes: 9 additions & 1 deletion less/bookmarksToolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
-webkit-user-select: none;
align-items: center;
display: flex;
&.showOnlyFavicon {
padding: 0px;
margin: 0px;
}
&:hover {
background: lighten(@tabsBackground, 5%);
}
Expand All @@ -74,6 +78,10 @@
display: inline-block;
margin-right: 4px;
}
&.showOnlyFavicon {
padding: 0px;
margin: 0px;
}
.bookmarkText {
text-overflow: ellipsis;
overflow: hidden;
Expand All @@ -83,7 +91,7 @@
margin-left: 4px;
}
}

.bookmarkButton {
box-sizing: border-box;
font-size: 14px;
Expand Down

0 comments on commit db90011

Please sign in to comment.