Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixing Gmail's layout with a custom style

I'm trying to make Gmail's new look usable on my small 1024x768 screen - the default layout leaves only a small window for the messages, surrounded by unmoving elements. Scrolling that small window around is massively annoying.

I've managed to make the entire page scrollable using a Stylish user style (a modified version of this one):

@-moz-document domain('mail.google.com'), 
 url-prefix('https://mail.google.com/mail') {

.akc.lKgBkb,
.oLaOvc.aeJ,
.lKgBkb.nH.oy8Mbf,
.lKgBkb.ajl.aib
{
  height: auto !important;
  overflow: hidden !important;
}

#canvas_frame { overflow-y: scroll; }

.l2 { padding-bottom: 20px !important; }

}

The elements that were supposed to have scrollbars now have height: auto, and what is scrolled is the whole outer page (in #canvas-frame) that was supposed to remain static.

I'm mostly satisfied with the effect -- it works almost like the old Gmail did. There is, however, a problem - scrolling with keyboard (arrow keys, PgUp/PgDn, Home/End) stopped working. Any ideas on how to fix that?

like image 649
hmp Avatar asked Apr 24 '12 23:04

hmp


People also ask

How do I change my Gmail back to normal view 2022?

Click on the Settings gear icon on the top right of the page, and choose Go back to the original view. You'll be prompted to give Google feedback about why you want to see the previous version.

Why has my Gmail layout changed?

Google began rolling out the new look for Gmail, which has more than 1.5 billion monthly users, back in February. The new design is meant to better integrate programs like Meet and Chat and make them more accessible on Gmail's main landing page.


1 Answers

Have you tried looking for a ready solution? While a DIY approach is admirable, chances are someone already made the change in-depth, especially given some users' dissatisfaction with the new look options.

The file linked here (no affiliation) under "Greasemonkey users can also install this style as user script" could be a good starting point; although I'd go through it in greater detail and remove any odd 3rd party url references etc.

like image 156
Oleg Avatar answered Oct 24 '22 06:10

Oleg