Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/search_input_height #257

Merged
merged 3 commits into from
Dec 8, 2024
Merged

Fix/search_input_height #257

merged 3 commits into from
Dec 8, 2024

Conversation

Pugma
Copy link
Collaborator

@Pugma Pugma commented Dec 7, 2024

User description

変更の根拠

  • height 指定の取りやめ
    • アセンダー・ディセンダーが本来の文字の高さからはみ出しているため、文字の高さで input を指定するとはみ出てしまう
    • とりあえず下手に高さを抑えないことで対処
  • line-height
    • 行の高さを調整するためのものなので、1 行しかないここでは不要だと判断

参考画像です
image

ディセンダーに関しては分かりやすいと思う
ちょうど文字が切れる位置で線が引かれているはずだし


PR Type

Bug fix, Enhancement


Description

  • .inputWrapperline-height プロパティを削除しました。単一行の入力には不要なためです。
  • .inputheight プロパティを 1em から 100% に変更し、テキストのクリッピング問題を解消しました。
  • defineProps を Vue 3.5 の仕様に合わせてデフォルト値を持つ分割代入に変更しました。
  • iconSize 計算で props.size の代わりに分割代入された size 変数を使用するように調整しました。

Changes walkthrough 📝

Relevant files
Enhancement
SearchInput.vue
Adjusted input height and props handling in SearchInput component

src/components/UI/SearchInput.vue

  • Removed line-height property from .inputWrapper as it is unnecessary
    for single-line inputs.
  • Changed height property of .input from 1em to 100% to avoid text
    clipping issues.
  • Updated defineProps to use destructuring with default values, aligning
    with Vue 3.5 conventions.
  • Adjusted iconSize computation to use destructured size variable
    instead of props.size.
  • +8/-15   

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    Copy link

    github-actions bot commented Dec 7, 2024

    Copy link

    github-actions bot commented Dec 7, 2024

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    デフォルト値の設定
    definePropsを使用しているが、Vue 3.5の仕様に合わせたデフォルト値の設定が適切か確認が必要です。

    スタイル変更
    .inputheightプロパティを100%に変更したことの影響を確認する必要があります。

    Copy link

    github-actions bot commented Dec 7, 2024

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @Pugma Pugma linked an issue Dec 7, 2024 that may be closed by this pull request
    @Pugma Pugma enabled auto-merge December 7, 2024 10:50
    Copy link
    Contributor

    @ogu-kazemiya ogu-kazemiya left a comment

    Choose a reason for hiding this comment

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

    確認しました〜
    文字の上下が切れないようになってます
    propsの分割代入も問題ないです
    ありがとうございます!

    @Pugma Pugma merged commit 355b7f4 into main Dec 8, 2024
    12 checks passed
    @Pugma Pugma deleted the fix/search_input_height branch December 8, 2024 11:26
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    ユーザー検索欄に入力した文字の下が切れる
    2 participants