Skip to content

Commit

Permalink
Feature: adjust icon styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pKallert committed Nov 17, 2023
1 parent 69cb8d7 commit 7bf70a6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class SyncWorkspaceDialog extends PureComponent {
'Synchronize personal workspace', {}, 'Neos.Neos.Ui', 'Main')
return (
<div>
<Icon icon="resource://Neos.Neos.Ui/Icons/sync_alert.svg" className={style.buttonIcon} size="2x"/>
<Icon icon="resource://Neos.Neos.Ui/Icons/syncronize_alert.svg" className={style.buttonIcon} size="2x"/>
<span className={style.modalTitle}>
{synchronizeWorkspaceLabel}
</span>
Expand Down Expand Up @@ -94,7 +94,7 @@ export default class SyncWorkspaceDialog extends PureComponent {
hoverStyle="warn"
onClick={this.handleConfirm}
>
<Icon icon="resource://Neos.Neos.Ui/Icons/sync.svg" className={style.buttonIcon} size="2x"/>
<Icon icon="resource://Neos.Neos.Ui/Icons/syncronize.svg" className={style.buttonIcon} size="2x"/>
<span className={style.confirmText}>
{confirmationLabel}
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
.modalContents {
padding: var(--spacing-Full);
white-space: pre-line;
}

.buttonIcon {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
float: left;
margin-right: var(--spacing-Half);
margin-right: var(--spacing-Quarter);
}

.buttonIcon span {
display: inline-block;
width: 100%;
}

.buttonIcon svg {
width: 100%;
height: auto;
}

.confirmText{
vertical-align: sub;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export default class WorkspaceSync extends PureComponent {
isSaving,
isOpen
} = this.props;
let icon = 'resource://Neos.Neos.Ui/Icons/sync_check.svg';
let icon = 'resource://Neos.Neos.Ui/Icons/syncronize_check.svg';
switch (personalWorkspaceStatus) {
case 'OUTDATED':
icon = 'resource://Neos.Neos.Ui/Icons/sync.svg';
icon = 'resource://Neos.Neos.Ui/Icons/syncronize.svg';
break;
case 'OUTDATED_CONFLICT':
icon = 'resource://Neos.Neos.Ui/Icons/sync_alert.svg';
icon = 'resource://Neos.Neos.Ui/Icons/syncronize_alert.svg';
break;
}
if (personalWorkspaceStatus !== 'UP_TO_DATE') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.iconRebase svg {
height: 2rem;
height: 1.5rem;
width: auto;
}

Expand All @@ -19,6 +19,6 @@
align-items: center;
}
.rebaseButton {
padding: 4px;
padding: var(--spacing-Quarter);
border-left: 1px solid black;
}

0 comments on commit 7bf70a6

Please sign in to comment.