public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height
@ 2022-03-03 15:03 Stefan Sterz
  2022-03-10  9:31 ` Thomas Lamprecht
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Sterz @ 2022-03-03 15:03 UTC (permalink / raw)
  To: pbs-devel

this fixes an issue where the layout looks misaligned in three column
layouts

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
 www/Dashboard.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/Dashboard.js b/www/Dashboard.js
index 70c2305b..7b2700eb 100644
--- a/www/Dashboard.js
+++ b/www/Dashboard.js
@@ -239,11 +239,11 @@ Ext.define('PBS.Dashboard', {
 		Ext.String.format(gettext('{0} days'), '{days}') + ')',
 	    },
 	    reference: 'longesttasks',
-	    height: 250,
+	    height: 280,
 	},
 	{
 	    xtype: 'pbsRunningTasks',
-	    height: 250,
+	    height: 280,
 	},
 	{
 	    bind: {
@@ -251,13 +251,13 @@ Ext.define('PBS.Dashboard', {
 		Ext.String.format(gettext('{0} days'), '{days}') + ')',
 	    },
 	    xtype: 'pbsTaskSummary',
-	    height: 200,
+	    height: 280,
 	    reference: 'tasksummary',
 	},
 	{
 	    iconCls: 'fa fa-ticket',
 	    title: 'Subscription',
-	    height: 200,
+	    height: 280,
 	    reference: 'subscription',
 	    xtype: 'pbsSubscriptionInfo',
 	},
-- 
2.30.2





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height
  2022-03-03 15:03 [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height Stefan Sterz
@ 2022-03-10  9:31 ` Thomas Lamprecht
  2022-03-10 10:13   ` Stefan Sterz
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Lamprecht @ 2022-03-10  9:31 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Stefan Sterz

On 03.03.22 16:03, Stefan Sterz wrote:
> this fixes an issue where the layout looks misaligned in three column
> layouts
> 

imo it makes the layout look worse in the two column layout as there's a lot
of empty, odd looking space in the "Task Summary" and "Subscription" card.

We could only change the running/longest task one, that'd fix the biggest
problem with the three column mode and still looks nice in the two-column
mode - what do you think?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height
  2022-03-10  9:31 ` Thomas Lamprecht
@ 2022-03-10 10:13   ` Stefan Sterz
  2022-03-10 10:15     ` Thomas Lamprecht
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Sterz @ 2022-03-10 10:13 UTC (permalink / raw)
  To: Thomas Lamprecht, Proxmox Backup Server development discussion

On 10.03.22 10:31, Thomas Lamprecht wrote:
> On 03.03.22 16:03, Stefan Sterz wrote:
>> this fixes an issue where the layout looks misaligned in three column
>> layouts
>>
> 
> imo it makes the layout look worse in the two column layout as there's a lot
> of empty, odd looking space in the "Task Summary" and "Subscription" card.
> 
> We could only change the running/longest task one, that'd fix the biggest
> problem with the three column mode and still looks nice in the two-column
> mode - what do you think?
> 

yes they do look a bit awkward, if we fix both the longest and running
tasks panels that works for me too. we could also set the height to
270 instead of 280, that would mean we have almost the same vertical
height as before overall (off by 10) and it would make the
"uptime/stats" look a bit nicer imho (getting rid of the whitespace
"chin"). ill send a patch for that in a sec.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height
  2022-03-10 10:13   ` Stefan Sterz
@ 2022-03-10 10:15     ` Thomas Lamprecht
  2022-03-10 10:20       ` Stefan Sterz
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Lamprecht @ 2022-03-10 10:15 UTC (permalink / raw)
  To: Stefan Sterz, Proxmox Backup Server development discussion

On 10.03.22 11:13, Stefan Sterz wrote:
> On 10.03.22 10:31, Thomas Lamprecht wrote:
>> On 03.03.22 16:03, Stefan Sterz wrote:
>>> this fixes an issue where the layout looks misaligned in three column
>>> layouts
>>>
>>
>> imo it makes the layout look worse in the two column layout as there's a lot
>> of empty, odd looking space in the "Task Summary" and "Subscription" card.
>>
>> We could only change the running/longest task one, that'd fix the biggest
>> problem with the three column mode and still looks nice in the two-column
>> mode - what do you think?
>>
> 
> yes they do look a bit awkward, if we fix both the longest and running
> tasks panels that works for me too. we could also set the height to
> 270 instead of 280, that would mean we have almost the same vertical
> height as before overall (off by 10) and it would make the
> "uptime/stats" look a bit nicer imho (getting rid of the whitespace
> "chin"). ill send a patch for that in a sec.

note that different translations can mean a line break in the stats panel,
IIRC that chin is there on purpose.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height
  2022-03-10 10:15     ` Thomas Lamprecht
@ 2022-03-10 10:20       ` Stefan Sterz
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Sterz @ 2022-03-10 10:20 UTC (permalink / raw)
  To: Thomas Lamprecht, Proxmox Backup Server development discussion

On 10.03.22 11:15, Thomas Lamprecht wrote:
> On 10.03.22 11:13, Stefan Sterz wrote:
>> On 10.03.22 10:31, Thomas Lamprecht wrote:
>>> On 03.03.22 16:03, Stefan Sterz wrote:
>>>> this fixes an issue where the layout looks misaligned in three column
>>>> layouts
>>>>
>>>
>>> imo it makes the layout look worse in the two column layout as there's a lot
>>> of empty, odd looking space in the "Task Summary" and "Subscription" card.
>>>
>>> We could only change the running/longest task one, that'd fix the biggest
>>> problem with the three column mode and still looks nice in the two-column
>>> mode - what do you think?
>>>
>>
>> yes they do look a bit awkward, if we fix both the longest and running
>> tasks panels that works for me too. we could also set the height to
>> 270 instead of 280, that would mean we have almost the same vertical
>> height as before overall (off by 10) and it would make the
>> "uptime/stats" look a bit nicer imho (getting rid of the whitespace
>> "chin"). ill send a patch for that in a sec.
> 
> note that different translations can mean a line break in the stats panel,
> IIRC that chin is there on purpose.

yeah, you are right. i can send a v3 (sorry for the spam). i'd like
to point out though that in e.g. arabic even 280 is not enough. arabic
would require something closer to 320 to be displayed nicely.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-10 10:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 15:03 [pbs-devel] [PATCH proxmox-backup v2 1/1] ui: make panels in the dashboard all the same height Stefan Sterz
2022-03-10  9:31 ` Thomas Lamprecht
2022-03-10 10:13   ` Stefan Sterz
2022-03-10 10:15     ` Thomas Lamprecht
2022-03-10 10:20       ` Stefan Sterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal