Easy-digital-downloads: 3.0: Text overlapping in Order Extras box

Created on 23 Jul 2018  路  7Comments  路  Source: easydigitaldownloads/easy-digital-downloads

Latest release/3.0. The Subscription TXN ID text label collides with the link. Not sure if we need to update here, Recurring, or both.

image

component-administration type-bug

All 7 comments

So when the Order is for a subscription, this problem presents itself with the Subscription TXN ID label. When it's not a subscription, the label is Transaction ID (EDD core). The latter doesn't produce the same display issue, but it does make me dislike the inconsistency, using TXN in Recurring but Transaction in core.

I'm bringing this up here because the above display issue that @mindctrl is pointing out is due to CSS. Using white-space: nowrap; on the labels to avoid multiple lines of text. As you all probably know from the other recent issue, I'm against that for this exact reason. Not only is the content being boxed into a space, but the content isn't even the true length that I think it really should be (using Transaction instead of TXN, which is a Recurring problem, not EDD core).

I understand the dilemma, and I do appreciate the new design here with the labels and their values having sort of a center anchor. But I think the labels, while keeping with the same overall [new] design, should be able to span multiple lines. And if that's simply too unappealing for this overall design, I think it's worth it to look into the design approach again.

I agree with @SDavisMedia. If we're going to enforce fixed widths on the labels, it needs to span across multiple lines otherwise this UI breaks when we deal with translations as well.

I see this on non-recurring transactions:

image

Definitely still up for discussion but I'm gonna suggest simply getting rid of the nowrap for the labels. I understand that the look is somewhat uncomfortable for some (not me). But if the labels/values are going to be split down the middle, I do not see any issues with multi-line labels. They should be pretty rare.

screenshot_2018-08-11 edit order orders edd3 wordpress

For what John reported, that output comes from using esc_html(). https://github.com/easydigitaldownloads/easy-digital-downloads/blob/release/3.0/includes/admin/payments/orders.php#L649

Does it have to be escaped there?

It doesn't have to be escaped; it can be removed. I wrapped it in esc_html only because WPCS was giving a warning.

Merged.

Was this page helpful?
0 / 5 - 0 ratings