Steve Howell
9f5725d265
buddy list: Adjust sizing calc for narrow mode.
...
This fixes the calculation for how far from the
top of the viewport we think #right_sidebar's
top is. To fully explain this commit requires
some background info.
Normally `#right-sidebar` has 50px of top margin
and 0px of top padding. And our `resize.js`
calculations have been accurate for the normal
case.
But when you are in the so-called `.expanded` mode
(i.e. when you're in a narrow window) we split up the
50px as follows:
- 40px margin
- 10px padding
Why don't I make the CSS just be more consistent here?
- If you go to 50px in the "expanded" mode
you mostly cover up the right scrollbar,
except for the 10px gutter that is below
the 40px-tall `.header` section. To fully
cover it we apparently want the padding;
otherwise you see a small, unusable remnant
of the scrollbar which just looks funny.
- If we were to make the "regular" right sidebar
just always have the 40/10 split, then we
would start to diverge from the left sidebar,
which is currently 50/0 as well.
- If we went to make both the left and the right
sidebars 40/10 split, well, that's just an
even riskier change.
So instead I fix the resize calculation:
I just calculate the actual `top` position.
Is any of this actually user-facing?
Yes. Now if a user is a narrow window and
they open the buddy list, we will make
the buddy list 10px smaller to account for
the padding. This makes it less likely for
the invite link to get squeezed out.
2020-05-27 17:57:50 -07:00
..
2020-05-26 17:01:32 -07:00
2020-05-21 12:32:52 -07:00
2020-05-11 23:22:50 -07:00
2020-05-26 23:33:40 -07:00
2020-05-26 21:26:11 -07:00
2020-05-08 14:04:21 -07:00
2020-05-27 14:09:56 -07:00
2020-02-27 11:10:13 -08:00
2020-02-11 17:43:35 -08:00
2020-04-15 15:13:26 -07:00
2020-05-08 14:54:54 -07:00
2020-05-26 23:33:40 -07:00
2020-05-11 16:16:58 -07:00
2020-04-03 14:51:35 -07:00
2020-02-07 14:09:47 -08:00
2020-02-27 17:41:45 -08:00
2020-05-05 21:44:09 -07:00
2020-02-27 17:20:34 -08:00
2020-03-26 21:35:32 -07:00
2020-02-13 16:37:52 -08:00
2020-05-27 14:09:56 -07:00
2020-05-27 17:57:50 -07:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-15 12:20:20 -08:00
2020-02-10 14:08:12 -08:00
2020-05-27 17:57:50 -07:00
2020-05-12 11:40:12 -07:00
2020-04-02 14:44:35 -07:00
2020-05-09 10:22:37 -07:00
2020-04-02 16:57:01 -07:00
2020-03-09 14:07:13 -07:00
2020-05-09 10:18:59 -04:00
2020-05-20 09:51:38 -07:00
2020-05-11 16:25:47 -07:00
2020-05-26 23:33:40 -07:00
2020-05-26 23:33:40 -07:00
2020-02-25 14:43:46 -08:00
2020-05-20 13:51:54 -07:00
2020-05-21 12:30:27 -07:00
2020-04-17 13:13:31 -07:00
2020-02-10 14:08:12 -08:00
2020-05-27 17:57:50 -07:00
2020-05-20 09:44:50 -07:00
2020-03-22 11:29:02 -07:00
2020-02-27 11:14:02 -08:00
2020-05-27 17:57:50 -07:00
2020-02-27 17:20:34 -08:00
2020-05-26 21:26:11 -07:00
2020-02-29 12:19:51 -08:00
2020-03-24 20:41:24 -07:00
2020-05-26 22:04:36 -07:00
2020-04-22 17:57:16 -07:00
2020-05-26 23:33:40 -07:00
2020-04-05 13:13:02 -07:00
2020-05-11 16:16:58 -07:00
2020-02-12 10:39:01 -08:00
2020-05-26 23:33:40 -07:00
2020-02-18 16:13:38 -08:00
2020-05-21 12:32:52 -07:00
2020-05-25 15:51:01 -07:00
2020-05-26 23:33:40 -07:00
2020-05-27 17:57:50 -07:00
2020-02-10 14:08:12 -08:00
2020-02-27 17:20:34 -08:00
2020-05-21 12:32:52 -07:00
2020-04-22 16:25:38 -07:00
2020-02-07 14:09:47 -08:00
2020-05-26 15:21:42 -07:00
2020-04-16 20:11:04 -07:00
2020-05-12 00:15:26 -07:00
2020-02-15 12:20:20 -08:00
2020-05-20 09:44:50 -07:00
2020-04-22 15:07:15 -07:00
2020-03-27 00:17:26 -07:00
2020-05-21 12:41:55 -07:00
2020-03-27 17:25:56 -07:00
2020-04-26 23:02:05 -07:00
2020-05-09 10:22:37 -07:00
2020-04-10 00:48:02 -07:00
2020-05-27 17:57:50 -07:00
2020-05-26 21:41:54 -07:00
2020-02-27 17:20:34 -08:00
2020-02-10 14:08:12 -08:00
2020-04-28 12:32:40 -07:00
2020-02-10 14:08:12 -08:00
2020-05-26 23:33:40 -07:00
2020-04-03 11:44:56 -07:00
2020-05-26 23:33:40 -07:00
2020-05-27 17:15:14 -07:00
2020-05-12 11:59:06 -07:00
2020-05-12 00:15:26 -07:00
2020-05-20 09:44:50 -07:00
2020-02-25 14:09:39 -08:00
2020-02-21 09:53:45 -05:00
2020-05-21 12:37:37 -07:00
2020-05-27 17:57:50 -07:00
2020-05-26 23:33:40 -07:00
2020-03-26 21:35:32 -07:00
2020-02-10 15:57:20 -08:00
2020-04-15 15:13:26 -07:00
2020-05-26 22:04:36 -07:00
2020-02-27 17:20:34 -08:00
2020-05-26 21:26:11 -07:00
2020-02-10 14:08:12 -08:00
2020-05-26 22:04:36 -07:00
2020-02-12 10:39:01 -08:00
2020-05-26 21:41:54 -07:00
2020-02-25 14:09:39 -08:00
2020-05-09 10:22:37 -07:00
2020-05-27 14:09:56 -07:00
2020-05-08 14:09:31 -07:00
2020-03-06 16:34:08 -08:00
2020-05-09 10:22:37 -07:00
2020-04-15 15:13:26 -07:00
2020-04-30 13:00:59 -07:00
2020-05-01 17:42:49 -07:00
2020-04-15 15:13:26 -07:00
2020-04-22 15:07:15 -07:00
2020-04-26 23:02:05 -07:00
2020-05-27 17:15:14 -07:00
2020-02-10 14:08:12 -08:00
2020-05-11 16:16:58 -07:00
2020-04-15 15:47:04 -07:00
2020-02-07 14:09:47 -08:00
2020-02-12 08:16:26 -05:00
2020-05-20 09:51:38 -07:00
2020-05-02 15:09:05 -07:00
2020-02-15 12:20:20 -08:00
2020-02-07 14:09:47 -08:00
2020-05-26 22:04:36 -07:00
2020-05-16 14:53:22 -07:00
2020-05-26 23:33:40 -07:00
2020-05-26 23:33:40 -07:00
2020-04-01 14:40:41 -07:00
2020-04-06 16:19:43 -07:00
2020-05-19 14:03:35 -07:00
2020-02-15 12:20:20 -08:00
2020-05-02 11:16:51 -07:00
2020-04-15 15:13:26 -07:00
2020-02-10 14:08:12 -08:00
2020-05-24 16:32:36 -07:00
2020-05-26 22:04:36 -07:00
2020-04-01 14:01:45 -07:00
2020-02-21 20:01:21 -05:00
2020-05-21 12:37:37 -07:00
2020-05-06 09:35:04 -04:00
2020-02-11 14:14:59 -08:00
2020-04-16 20:11:04 -07:00
2020-04-16 20:11:04 -07:00
2020-04-16 20:11:04 -07:00
2020-04-09 16:11:57 -07:00
2020-04-20 20:49:47 -07:00
2020-02-25 15:37:37 -08:00
2020-05-26 22:04:36 -07:00
2020-02-13 17:50:59 -08:00
2020-05-14 14:27:53 -07:00
2020-02-10 14:08:12 -08:00
2020-02-07 14:09:47 -08:00
2020-03-31 15:30:52 -07:00
2020-04-11 12:00:46 -07:00
2020-04-08 14:42:46 -07:00
2020-05-08 14:54:54 -07:00
2020-05-12 11:09:01 -07:00
2020-05-26 23:33:40 -07:00
2020-04-20 20:53:39 -07:00
2020-05-27 17:57:50 -07:00
2020-03-06 17:13:50 -08:00
2020-02-26 13:14:09 -08:00
2020-05-09 16:32:40 -07:00
2020-02-13 17:50:59 -08:00
2020-02-06 17:24:43 -08:00
2020-04-07 20:54:34 -07:00
2020-02-07 14:09:47 -08:00