Jump to content

Add
in pop-up translation panel

Add <br> in pop-up translation panel

The pop-up translation panel has a short summary field and 3 buttons. Since the text of these buttons can be quite long, in some cases the 3rd ("skip") button wraps to the next line. Since the summary+buttons are already occupying two lines, I propose adding a <br> after the summary field, which would make the buttons stand together in the same line, and would allow the summary field to be longer, without (in most(?) cases) using up any extra space.

Waldir (talk)08:28, 16 October 2010

Personally I think that summary field should take less space by default, since most of time it is useless.

Nike12:18, 16 October 2010

I'm ok with that, also. If you can make its size dynamic to allow space for the buttons, that'd be fine :) Otherwise, a shorter static size and having the buttons wrapped in a non-breaking environment would at least guarantee that they move together to the next line if the space above is not sufficient. Though that would mean they wouldn't wrap for really small screens... I guess the only valid solution is indeed adding the <br>. But, we could hide the summary line by default. How about that?

Waldir (talk)18:19, 16 October 2010

The field should still be accessible somehow, I don't think we can hide it entirely.

Nike11:51, 17 October 2010

I meant hide as in collapse, with a "show" or "enter edit summary" link :)

Waldir (talk)20:06, 17 October 2010
Edited by author.
Last edit: 21:43, 18 October 2010

It could have a a standard size of e.g. 3em, and of 99% of the screen width while it has the focus.

Purodha Blissenbach15:16, 18 October 2010

Good idea :)

Waldir (talk)18:11, 18 October 2010

That seems to be doable with JavaScript. Can someone make a prototype I could integrate in the extension?

Nike12:59, 28 October 2010
Edited by another user.
Last edit: 10:14, 26 January 2011

It can be done with CSS, here is a sample that works with my system/browsers:

<head>
	<style type="text/css">
		.dynwidth {
			width:3em;
		}
		.dynwidth:focus, .dynwidth:hover {
			width:99%;
		}
	</style>
</head>
<body>
	<form>
		|<input class="dynwidth" />|
	</form>
</body>
Purodha Blissenbach12:42, 24 January 2011

Done and live.

Nike09:08, 4 April 2011