Skip to content

Use variables for input border width - #5563

Merged
marcoambrosini merged 1 commit into
masterfrom
reduce-input-border-width
May 31, 2024
Merged

Use variables for input border width#5563
marcoambrosini merged 1 commit into
masterfrom
reduce-input-border-width

Conversation

@marcoambrosini

Copy link
Copy Markdown
Contributor
Screen.Recording.2024-05-07.at.16.56.54.mov

@marcoambrosini

Copy link
Copy Markdown
Contributor Author

Waiting for server border-width variable to be in before merging this

@ShGKme

ShGKme commented May 7, 2024

Copy link
Copy Markdown
Contributor

Waiting for server border-width variable to be in before merging this

Can you link the PR? I cannot find it...

@marcoambrosini

Copy link
Copy Markdown
Contributor Author

@ShGKme it doesn't exist yet :)

@jancborchardt jancborchardt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The input field looks good, but for the textarea, it jumps around vertically on focus, a result of the 1px/2px change on focus.

(And yes, waiting for server for the --border-width variable.)

@jancborchardt

Copy link
Copy Markdown
Contributor

Also FYI, both commits are in here too :)

@marcoambrosini
marcoambrosini force-pushed the reduce-input-border-width branch from 26f85e9 to be946f7 Compare May 7, 2024 15:02
@marcoambrosini

Copy link
Copy Markdown
Contributor Author

variable here nextcloud/server@43510be

@marcoambrosini
marcoambrosini force-pushed the reduce-input-border-width branch from be946f7 to e34997e Compare May 13, 2024 08:11
@marcoambrosini marcoambrosini changed the title Reduce input border width Use variable for input border width May 13, 2024
@marcoambrosini
marcoambrosini requested a review from susnux May 13, 2024 12:35
@marcoambrosini
marcoambrosini enabled auto-merge May 13, 2024 13:11

@ShGKme ShGKme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For compatibility with older server, we probably should use 2px as a fallback

Comment thread src/components/NcInputField/NcInputField.vue Outdated
@marcoambrosini
marcoambrosini force-pushed the reduce-input-border-width branch from e34997e to ac3bda6 Compare May 13, 2024 13:31
@marcoambrosini
marcoambrosini requested review from ShGKme and szaimen May 13, 2024 13:31
@marcoambrosini marcoambrosini self-assigned this May 16, 2024
@marcoambrosini marcoambrosini added enhancement New feature or request 2. developing Work in progress labels May 16, 2024
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
@marcoambrosini
marcoambrosini force-pushed the reduce-input-border-width branch from ac3bda6 to 91f8a2a Compare May 16, 2024 13:38
@marcoambrosini marcoambrosini changed the title Use variable for input border width Use variables for input border width May 16, 2024
@marcoambrosini

Copy link
Copy Markdown
Contributor Author

@ShGKme I've switched back to borders, but there's still a problem with the text jumping inside on hover and focus. I've tried to change the paddings but the problem is still there. Could you please have a look?

@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 31, 2024
@susnux susnux modified the milestones: 8.13.0, 8.12.1 May 31, 2024
@susnux susnux added bug Something isn't working and removed enhancement New feature or request labels May 31, 2024

@szaimen szaimen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@marcoambrosini
marcoambrosini merged commit d508420 into master May 31, 2024
@marcoambrosini
marcoambrosini deleted the reduce-input-border-width branch May 31, 2024 12:11
@marcoambrosini

Copy link
Copy Markdown
Contributor Author

/backport to next

@ShGKme

ShGKme commented May 31, 2024

Copy link
Copy Markdown
Contributor

but there's still a problem with the text jumping inside on hover and focus

Was it resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants