summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-10-12 13:51:47 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-10-12 13:51:47 +0200
commit22f2331c7da67e3fab231e483fb3474075c76ff2 (patch)
tree1400e2e822a43bb4f8b2e21ea2df196d90e58277
parente85647d63faf5cb70f50a9c04ab25c55bd8ab87b (diff)
parent3193ef1be91c17d9cceab122579f4f55fe00de5a (diff)
downloadmullvadvpn-22f2331c7da67e3fab231e483fb3474075c76ff2.tar.xz
mullvadvpn-22f2331c7da67e3fab231e483fb3474075c76ff2.zip
Merge branch 'handle-long-app-names'
-rw-r--r--CHANGELOG.md1
-rw-r--r--gui/src/renderer/components/Accordion.tsx1
-rw-r--r--gui/src/renderer/components/SplitTunnelingSettings.tsx10
-rw-r--r--gui/src/renderer/components/SplitTunnelingSettingsStyles.tsx10
4 files changed, 19 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5d3b176799..d3a96afd46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,7 @@ Line wrap the file at 100 chars. Th
#### Windows
- Resolve symbolic links and junctions for excluded apps.
- Add opt-in support for NT kernel WireGuard driver. It can be enabled in the CLI.
+- Add monochromatic black icon on Windows for use with light themes.
### Changed
- Only use the account history file to store the last used account.
diff --git a/gui/src/renderer/components/Accordion.tsx b/gui/src/renderer/components/Accordion.tsx
index 01c0733165..a9b07a7493 100644
--- a/gui/src/renderer/components/Accordion.tsx
+++ b/gui/src/renderer/components/Accordion.tsx
@@ -26,6 +26,7 @@ const Content = styled.div({
flexDirection: 'column',
flex: 1,
height: 'fit-content',
+ width: '100%',
});
export default class Accordion extends React.Component<IProps, IState> {
diff --git a/gui/src/renderer/components/SplitTunnelingSettings.tsx b/gui/src/renderer/components/SplitTunnelingSettings.tsx
index 97a4e5189c..278cbd90a8 100644
--- a/gui/src/renderer/components/SplitTunnelingSettings.tsx
+++ b/gui/src/renderer/components/SplitTunnelingSettings.tsx
@@ -45,6 +45,8 @@ import {
StyledNoResult,
StyledNoResultSearchTerm,
StyledDisabledWarning,
+ StyledActionIcon,
+ StyledCellWarningIcon,
} from './SplitTunnelingSettingsStyles';
export default function SplitTunneling() {
@@ -280,7 +282,9 @@ function LinuxApplicationRow(props: ILinuxApplicationRowProps) {
<StyledIconPlaceholder />
)}
<StyledCellLabel lookDisabled={disabled}>{props.application.name}</StyledCellLabel>
- {props.application.warning && <Cell.Icon source="icon-alert" tintColor={warningColor} />}
+ {props.application.warning && (
+ <StyledCellWarningIcon source="icon-alert" tintColor={warningColor} />
+ )}
</StyledCellButton>
{showWarning && (
<ModalAlert
@@ -525,7 +529,7 @@ function ApplicationRow<T extends IApplication>(props: IApplicationRowProps<T>)
)}
<StyledCellLabel>{props.application.name}</StyledCellLabel>
{props.onSelect && (
- <ImageView
+ <StyledActionIcon
source="icon-add"
width={24}
height={24}
@@ -535,7 +539,7 @@ function ApplicationRow<T extends IApplication>(props: IApplicationRowProps<T>)
/>
)}
{props.onRemove && (
- <ImageView
+ <StyledActionIcon
source="icon-remove"
width={24}
height={24}
diff --git a/gui/src/renderer/components/SplitTunnelingSettingsStyles.tsx b/gui/src/renderer/components/SplitTunnelingSettingsStyles.tsx
index ca7b7954ec..a551f55d55 100644
--- a/gui/src/renderer/components/SplitTunnelingSettingsStyles.tsx
+++ b/gui/src/renderer/components/SplitTunnelingSettingsStyles.tsx
@@ -47,10 +47,20 @@ export const StyledIcon = styled(Cell.UntintedIcon)(disabledApplication, {
marginRight: '12px',
});
+export const StyledActionIcon = styled(ImageView)({
+ marginLeft: '6px',
+});
+
+export const StyledCellWarningIcon = styled(Cell.Icon)({
+ marginLeft: '6px',
+});
+
export const StyledCellLabel = styled(Cell.Label)(disabledApplication, {
fontFamily: 'Open Sans',
fontWeight: 'normal',
fontSize: '16px',
+ wordWrap: 'break-word',
+ overflow: 'hidden',
});
export const StyledIconPlaceholder = styled.div({