laravel / nova-issues

554 stars 34 forks source link

[4.0] Global search alignment thrown off with subtitle #3866

Closed dwightwatson closed 2 years ago

dwightwatson commented 2 years ago

Description:

When using a subtitle on a resource it breaks the alignment of the global search results.

image

You'd expect "Dwight Watson" to be left-aligned with the email address.

Detailed steps to reproduce the issue on a fresh Nova installation:

Add a subtitle to your user resource and then search for it in the global search.

    /**
     * Get the search result subtitle for the resource.
     *
     * @return string
     */
    public function subtitle()
    {
        return $this->email;
    }
crynobone commented 2 years ago

PR submitted and pending review:

Before

image

After

image