1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adding paddings to auto-update notification elements (#2163)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-02-16 17:49:27 +03:00 committed by GitHub
parent 3f2d912816
commit d3cedb49aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
.notification { .notification {
flex: 0 0; flex: 0 0;
padding: $padding; padding: $padding * 1.5;
border-radius: 3px; border-radius: 3px;
min-width: 350px; min-width: 350px;
max-width: 35vw; max-width: 35vw;

View File

@ -34,14 +34,14 @@ function UpdateAvailableHandler(event: IpcRendererEvent, ...[backchannel, update
Notifications.info( Notifications.info(
( (
<> <div className="flex column gaps">
<b>Update Available</b> <b>Update Available</b>
<p>Version {updateInfo.version} of Lens IDE is now available. Would you like to update?</p> <p>Version {updateInfo.version} of Lens IDE is now available. Would you like to update?</p>
<div className="flex gaps row align-left box grow"> <div className="flex gaps row align-left box grow">
<RenderYesButtons backchannel={backchannel} notificationId={notificationId} /> <RenderYesButtons backchannel={backchannel} notificationId={notificationId} />
<Button active outlined label="No" onClick={() => sendToBackchannel(backchannel, notificationId, { doUpdate: false })} /> <Button active outlined label="No" onClick={() => sendToBackchannel(backchannel, notificationId, { doUpdate: false })} />
</div> </div>
</> </div>
), { ), {
id: notificationId, id: notificationId,
onClose() { onClose() {