[Kimchi-devel] [PATCH] User action menu overflows when actions with names longer than a few chars are included

Adam King rak at linux.vnet.ibm.com
Tue Apr 22 14:18:29 UTC 2014


FWIW I intended it to expand and contract with the size of the menu 
contents. There is enough padding to keep it from looking weird, while 
avoiding future overflow/truncation problems by setting a specific width.


On 4/21/2014 10:25 PM, Hongliang Wang wrote:
> It shrinks when applied this patch when there are short action items.
>
>
>
> I suggest set a min-width for the action menu.
>
> min-width: 120px; /* or some other value */
> width: inherit; /* or width: auto; */
>
> On 04/22/2014 03:59 AM, Adam King wrote:
>> Update the CSS so the user action menu will expand to accomodate longer action names
>>
>> Signed-off-by: Adam King<rak at linux.vnet.ibm.com>
>> ---
>>   ui/css/theme-default/topbar.css | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/ui/css/theme-default/topbar.css b/ui/css/theme-default/topbar.css
>> index 7180cd5..b6f2fef 100644
>> --- a/ui/css/theme-default/topbar.css
>> +++ b/ui/css/theme-default/topbar.css
>> @@ -155,6 +155,7 @@
>>       color: black;
>>       padding: 12px 18px;
>>       white-space: nowrap;
>> +    width: inherit;
>>   }
>>
>>   .user-menu-item {
>

-- 
Adam King <rak at linux.vnet.ibm.com>
IBM C&SI

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140422/32ef4d57/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12412 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140422/32ef4d57/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 10405 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140422/32ef4d57/attachment-0001.png>


More information about the Kimchi-devel mailing list