From d9c6910b00ea02eca9ecfbeed737a8366a1e368e Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Thu, 25 Mar 2021 11:25:23 +0100 Subject: [PATCH 1/7] Some alignment and padding related UI improvements * Fix inconsistent padding in header * Fix issue with line appearing above the list * Set the max width on the data list itself not the items, otherwise we see the borders spanning to the whole page Fixes #177 --- src/app.jsx | 3 ++- src/ostree.scss | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 08982c9c..271397e1 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -564,7 +564,8 @@ class Application extends React.Component { refreshRemotes={this.refreshRemotes} onChangeRemoteOrigin={this.onChangeRemoteOrigin} remotesList={this.state.remotes} /> - + Date: Thu, 25 Mar 2021 11:51:42 +0100 Subject: [PATCH 2/7] Use medium modal variant and make it top aligned Footer is left aligned by default, no need to specify it. --- src/changeRemoteModal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/changeRemoteModal.jsx b/src/changeRemoteModal.jsx index e2e44ec4..effb65d6 100644 --- a/src/changeRemoteModal.jsx +++ b/src/changeRemoteModal.jsx @@ -60,11 +60,11 @@ export const ChangeRemoteModal = ({ setIsModalOpen, isModalOpen, remotesList, cu return ( setIsModalOpen(false)} - isFooterLeftAligned footer={footer}> <> {error && } From a57a3cc0bcb6379a22fe1892a6dd8adac76847d4 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Thu, 25 Mar 2021 14:19:18 +0100 Subject: [PATCH 3/7] Remove some CSS that is not applied any more --- src/app.jsx | 2 +- src/ostree.scss | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 271397e1..55793b0c 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -166,7 +166,7 @@ const OriginSelector = ({ os, remotes, branches, branchLoadError, currentRemote, { _("Repository") } - + { _("Branch")} diff --git a/src/ostree.scss b/src/ostree.scss index 5309fa87..51773222 100644 --- a/src/ostree.scss +++ b/src/ostree.scss @@ -21,15 +21,6 @@ @import "./lib/patternfly/patternfly-4-overrides.scss"; -// Rely on the padding between the toolbar items -#change-repo { - padding: 0; -} - -#check-for-updates-btn { - min-width: 10rem; -} - .pf-c-data-list__expandable-content div.pf-c-data-list__expandable-content-body { padding: 0; } @@ -78,17 +69,6 @@ // Add a border line bellow the navigatin .available-deployments .pf-c-nav { background: linear-gradient(0deg,var(--pf-global--BorderColor--100) 0,var(--pf-global--BorderColor--100) 1px,transparent 0); - - .pf-c-nav__tertiary-list { - .pf-c-nav__item { - margin: 0; - padding: 0; - } - - .pf-c-nav__link { - padding: 0.5rem 1rem; - } - } } .deployment-name { From 5d6de2e082b98a0d6f6ef55884b4092100b07873 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Thu, 25 Mar 2021 14:26:18 +0100 Subject: [PATCH 4/7] Remove padding from the expandable content of the data list by using the component property --- src/app.jsx | 2 +- src/ostree.scss | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 55793b0c..52bff8e7 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -364,7 +364,7 @@ const DeploymentVersion = ({ info, packages }) => { , ]} /> - +