nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.43k stars 4.08k forks source link

[Bug]: Remove extra css margin for URL in task title #44364

Closed RayBB closed 6 months ago

RayBB commented 8 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Originally reported in https://github.com/nextcloud/tasks/issues/2500

This issue is in the tasks app but the code causing it lives here.

Steps to reproduce

  1. Add a new task with a URL as the title https://wikipedia.org

Expected behavior

The task title is in line with non-URL titles.

Actual behaviour

It is off by 3px

image

Towards solutions

This appears to be caused by the a.external CSS which adds a margin.

a.external {
    margin: 0 3px;
    text-decoration: underline;
}

Looks like it actually comes from here in nextcloud/server/.../styles.scss.

The external class is added by calling linkify on this line: https://github.com/nextcloud/tasks/blob/8a1a4ab193e02a0c3e9c22817e39e46c99b6e180/src/components/TaskBody.vue#L53

The linkify function always adds the external class: https://github.com/nextcloud-libraries/nextcloud-vue/blob/87322fabb7f12ed9a64862903a204969ee45c632/src/utils/Linkify.js#L30-L39

So the way I see it there are a few options:

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

jadjoud commented 6 months ago

hello @RayBB checkout our PR #45070 me and @RayanBekri We found the problem and it's fixed now! Thank you so much for mentioning the issue