Skip to content

Commit 3cdfb47

Browse files
committed
update to v1.7.1
1 parent e6e0ccc commit 3cdfb47

File tree

7 files changed

+58
-5
lines changed

7 files changed

+58
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ All notable changes to this project will be documented in this file.
1212

1313
# v1.x (official releases)
1414

15+
### [1.7.1](https://github.com/lxieyang/vertical-tabs-chrome-extension/releases/tag/v1.7.1) (2020-01-24 Lunar New Year Eve!)
16+
17+
- Optimize dark mode implementation.
18+
- Add version number in **Settings**.
19+
1520
### [1.7.0](https://github.com/lxieyang/vertical-tabs-chrome-extension/releases/tag/v1.7.0) (2020-01-23)
1621

1722
- Added **Copy Tab URL** feature in the context menu as suggested in [#24](https://github.com/lxieyang/vertical-tabs-chrome-extension/issues/24).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vertical-tabs-chrome-extension",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "A chrome extension that presents your tabs vertically.",
55
"license": "MIT",
66
"repository": {

src/pages/Content/modules/UpdateNotice/UpdateNotice.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const UpdateNoticeContainer = styled.div`
2323
const ExtensionNameContainerSpan = styled.span`
2424
background-color: rgb(233, 115, 46);
2525
color: #fff;
26-
padding: 1px 2px;
26+
padding: 2px 4px;
2727
border-radius: 4px;
2828
`;
2929

src/pages/Sidebar/containers/TabsList/Tab/Tab.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124

125125
.TabTitle {
126126
flex: 1;
127+
position: relative;
127128
}
128129

129130
.Truncated {
@@ -132,6 +133,27 @@
132133
text-overflow: ellipsis;
133134
}
134135

136+
/* .FadeOut {
137+
position: absolute;
138+
top: 0;
139+
bottom: 0;
140+
right: 0;
141+
width: 20px;
142+
background: linear-gradient(
143+
to right,
144+
rgba(255, 255, 255, 0) 20%,
145+
rgba(222, 225, 230, 1) 100%
146+
);
147+
}
148+
149+
.FadeOutHovering {
150+
background: linear-gradient(
151+
to right,
152+
rgba(255, 255, 255, 0) 20%,
153+
rgba(244, 245, 247, 1) 100%
154+
);
155+
} */
156+
135157
.MutedIconContainer {
136158
margin-left: 2px;
137159
margin-right: 2px;

src/pages/Sidebar/containers/TabsList/Tab/Tab.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const Tab = ({
257257
<div
258258
className={classNames({
259259
TabTitle: true,
260-
Truncated: displayTabInFull,
260+
Truncated: !displayTabInFull,
261261
})}
262262
>
263263
{title}

src/pages/Sidebar/containers/Title/SettingsBox/SettingsBox.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
padding: 0.5rem 0.75rem;
1818
background-color: #f2f0f0;
1919
font-weight: 600;
20+
font-size: 15px;
2021

2122
display: flex;
2223
align-items: center;
@@ -27,6 +28,21 @@
2728
color: rgb(162, 162, 162);
2829
}
2930

31+
.VersionBadge {
32+
font-weight: 400;
33+
padding: 2px 6px;
34+
border-radius: 8px;
35+
font-size: 12px;
36+
background-color: rgb(228, 228, 228);
37+
color: black;
38+
text-decoration: none;
39+
}
40+
41+
.VersionBadge.Dark {
42+
background-color: rgb(98, 98, 99);
43+
color: rgb(212, 212, 212);
44+
}
45+
3046
.PopoverContent {
3147
font-size: 0.8rem;
3248
font-weight: 300;

src/pages/Sidebar/containers/Title/SettingsBox/SettingsBox.jsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext } from 'react';
1+
import React, { useContext, useState } from 'react';
22
import classNames from 'classnames';
33
import DarkModeContext from '../../../context/dark-mode-context';
44
import { MdSettings, MdBrightnessAuto } from 'react-icons/md';
@@ -38,7 +38,17 @@ const SettingsBox = ({
3838
return (
3939
<div className={classNames({ PopoverContainer: true, Dark: isDark })}>
4040
<div className={classNames({ PopoverTitle: true, Dark: isDark })}>
41-
<MdSettings style={{ marginRight: 6 }} /> Settings
41+
{/* <MdSettings style={{ marginRight: 6 }} size={'19px'} /> */}
42+
Settings <div style={{ flex: 1 }}></div>
43+
<a
44+
title="Source code"
45+
className={classNames({ VersionBadge: true, Dark: isDark })}
46+
href={'https://github.com/lxieyang/vertical-tabs-chrome-extension'}
47+
target="_blank"
48+
rel="noopener noreferrer"
49+
>
50+
v{chrome.runtime.getManifest().version}
51+
</a>
4252
</div>
4353
<div className={classNames({ PopoverContent: true, Dark: isDark })}>
4454
{/* SIDEBAR POSITION */}

0 commit comments

Comments
 (0)