How do I I make the backoffice size smaller? - sap-commerce-cloud

The default backoffice size is quite large, compared to HMC. To see more content, I usually set browser zoom to 80%, instead of 100%.
What is the best way to adjust the backoffice size permanently?

Related

PageSpeed Insights LCP with picture tag

We use PageSpeed Insights to measure the performance of our website (drupal 7 and picture module for lazy loading).
In the mobile results we got the message, that the LCP (largest contentful paint) was too high (4.5 s) and the following code is shown.
<img class=" lazyloaded" data-src="https://www.interelectronix.com/sites/default/files/styles/view_einspaltig_abfallend/public/image_contenttype/impactinator_glas_ik10_4.jpg?itok=YxPF9YZf&timestamp=1559550873" alt="ABNT NBR IEC 62262 " title="" src="https://www.interelectronix.com/sites/default/files/styles/view_einspaltig_abfallend/public/image_contenttype/impactinator_glas_ik10_4.jpg?itok=YxPF9YZf&timestamp=1559550873">
If we have a look in the Chrome developer tools, we see in the network tab, that not the image in the code (https://www.interelectronix.com/sites/default/files/styles/view_einspaltig_abfallend/public/image_contenttype/impactinator_glas_ik10_4.jpg) was delivered (the image in the code has about 110 KB file size), but a image with a lower resolution (which has about 47 KB file size).
Now we change the delivered image with an image (47 KB) with an image of 14 KB file size.
But the PageSpeed Insights values don't change. It's always the same 4.5 s.
Use PageSpeed Insights the image in the code for calculating the value?
Or what can we do to get a faster time result?
LCP is about when the largest item on the page is painted, it has nothing to do with the size of that item in kb (other than a smaller element will load faster).
What you want is for the "above the fold" content (content visible without scrolling) to be fully painted in less than 2.5 seconds, ideally 1.5 seconds.
To achieve this you need to make sure all of your CSS that is for "above the fold" is inlined within your HTML. (known as "inlining critical CSS").
Doing this will also fix "Eliminate Render Blocking Resources" as everything needed to render the page will be loaded with the first request. Finally this will also help with Cumulative Layout Shift as things won't "bounce" around the page as CSS styles are loaded.
For images above the fold you do not want them to be lazy loaded, instead you want them to load normally as they need to render as fast as possible. You also may want to ensure that the background image you use for the logo has the relevant CSS inlined as well as otherwise that will load in late. (better yet convert the logo to an inline SVG to save an unneeded request and page weight).
Finally I noticed you use a video background, it is unlikely you will get top scores as this uses a lot of bandwidth. I would suggest replacing your video background with a static image on a mobile to save the massive overhead associated with a video background.
By all means move the video further down the page and lazy load it in, but perhaps allow users to start the video manually.
Allowing a user to decide whether to play a video helps both with people who have low data allowances and also with people who have ADHD, autism etc. who may find a moving image distracting.
Anyway I have gone off tangent a bit. To fix a late LCP make sure that all above the fold assets have priority and are as light weight as possible basically.
You may find this article explaining LCP useful, as well as this article on how to optimise LCP for understanding what you need to look at.

Excel has doubled the size of all control on a form and cannot go back to normal

I have two monitors, one is 2k, the other 4k and both running on recommended windows scaling (125%, 150%).
I have a spreadsheet with two forms. I have just edited one form on my larger screen and after saving it has almost doubled the size of everything, as shown below is one section from a form I have updated, the other untouched from the same project.
When I copy/paste controls from one to the other, it doubles/halves in size, so something in the form has set scaling to be wrong.
The font and sizes are both exactly the same, zoom is normal at 100 and there are no other options I can see that affect scaling. I literally edited then saved and it just broke.
I know Excel completely knacks up when you use different monitors, but to date my forms have been ok.
Any idea how to get the size back to normal. I've even reset my monitors to both be 2k but it just won't fix anything unless i do something daft like set zoom to 50%.
thanks. This is latest Excel from 365.
I ran into the same issue today, having the VBA editor on a 4k screen with scaling and a 2k screen as primary. Every time a previewed the form, the size kept on (roughly) doubling. Also Office 365, so basically the latest version...
Anyways, I was able to revert the effect by changing the zoom property of the form (I used 50 but I assume it does not matter) and then resizing the form itself. After resizing, the zoom was applied and after setting zoom back to 100 the original size was restored.
Hopefully this helps anyone facing the same issue.

Make windows app fit to screen size instead of static size

I'm working on a windows app in order to learn how to make them in general, and one issue I'm continuously having is the fact that when I go test it, the controls only take up a portion of the screen because they are sized to fit a smaller screen. How can I make them fit for all screens? If I need to provide screenshots to illustrate this point I can.. using forms this was accomplished via docking, but the apps don't seem to have that same capability.
I assume that by "windows app" you mean a Windows Runtime app, probably in Xaml.
You can get dock-like behavior by using the VerticalAlignment and HorizontalAlignment properties on your FrameworkElement (including Controls). This allows forcing the control to the left, right, top, bottom, or stretching to fill the area it is in.
Combine this with flexible layout controls such as Grids. A top level Grid will fill the screen and can contain rows and columns with relative sizes. This allows the page layout to shrink or grow to cover a fairly wide range of sizes with a single layout.
For larger changes (such as switching between portrait and landscape aspect ratios, or to support a skinny snapped window) you can use VisualStates to either move the controls or to switch between different sets of controls. If the controls are data bound then either set will work automatically with the underlying data.
MSDN has some good documentation on these concepts at Guidelines for supporting multiple screen sizes and Quickstart: Designing apps for different window sizes

gravatar highest resolution

I show a gravatr image of users in my site. How can I know the best highest resolution to use? e.g. which parameter "s" should be.
https://secure.gravatar.com/avatar/?s=250
of course it depends in the user image, but gravatr must know the resolution of the initial image and can advise me on best highest size.
It seems the maximum size changed drastically in the last 9 month
You may request images anywhere from 1px up to 2048px, however note that many users have lower resolution images, so requesting larger sizes may result in pixelation/low-quality images.
quoted from the Gravatar image Request tutorial
I don't think it is possible, I just did some research on that matter because I have the same need, but I think Gravatar was designed for websites that will show all avatars at the same size, which means small avatars, and if it's too big for some of them, they'll be ok with the automatic upscaling.
They should include a "?s=native" to get the native size.
This is what Gravatar writes about the resolution of the avatars:
You may request images anywhere from 1px up to 2048px, however note
that many users have lower resolution images, so requesting larger
sizes may result in pixelation/low-quality images.
The highest resolution of the default image would be 2048px:)
Read more about Gravatar images (including the default image) on https://en.gravatar.com/site/implement/images/
EDIT: You will see the picture cannot get any bigger than 2048px x 2048px even if you set s=3000:)
EDIT 2: Apparently the maximum size changed from 512px to 2048px

Orientation in iPhone?

In my application, I use Orientation, I have to change the size of the controls according to the orientation. I have used a flag and according to that flag I change the size of the controls. But my doubt is, will this orientation affect every time, when user rotates the phone?
I think, better you use
view.autoresizingMask instead of changing the view sizes wrt orientation. Otherwise, it will change the size, but still, the orientation-size code will be called again n again.

Resources