Skip to content

スクロールのスタイルの追加とそれに伴うcssの修正#44

Closed
mumumu6 wants to merge 1 commit intomainfrom
fix/scroll
Closed

スクロールのスタイルの追加とそれに伴うcssの修正#44
mumumu6 wants to merge 1 commit intomainfrom
fix/scroll

Conversation

@mumumu6
Copy link
Copy Markdown
Member

@mumumu6 mumumu6 commented Jul 11, 2025

でスクロールしていたものを各コンポーネント、viewファイルでスクロールするするようにしました。最初に幅いっぱいの領域を確保するとスクロールバーが領域の端におけます。
それに伴って少しcssを編集しています。

@mumumu6 mumumu6 requested review from Copilot and kitsne241 and removed request for Copilot July 11, 2025 01:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR moves scrolling responsibility from the root <v-app> into individual view components and adds custom scrollbar styling.

  • Wraps UserInfoView content in an inner container and updates .container to use 100vh with its own scroll.
  • Adjusts RegistrationView to occupy full viewport width/height and enable vertical scrolling.
  • Introduces global CSS to hide page overflow and style scrollbars.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/views/UserInfoView.vue Wrapped view contents in .inner, changed container to 100vh and added overflow-y:auto
src/views/RegistrationView.vue Replaced min-height with height:100vh, added width:100vw and overflow-y:auto
src/assets/style.css Hid html overflow with !important and added ::-webkit-scrollbar custom styles
Comments suppressed due to low confidence (2)

src/assets/style.css:12

  • Using !important on html { overflow: hidden } can introduce specificity wars and unexpected side effects in other parts of the app. Consider scoping overflow rules to the actual scrollable container instead of the root element.
  overflow: hidden !important;

src/views/RegistrationView.vue:142

  • Using 100vw can cause horizontal overflow when scrollbars appear (as they don't reduce the viewport width). Consider using width: 100% or accounting for scrollbar width to avoid unintended horizontal scrolling.
  width: 100vw;

Comment thread src/assets/style.css
overflow: hidden !important;
}

::-webkit-scrollbar {
Copy link

Copilot AI Jul 11, 2025

Choose a reason for hiding this comment

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

Scrollbar styling with ::-webkit-scrollbar only works in WebKit browsers. To ensure consistent appearance across all browsers, consider adding non-WebKit properties like scrollbar-color and scrollbar-width for Firefox support.

Copilot uses AI. Check for mistakes.
Comment thread src/assets/style.css
Comment on lines +16 to +23
width: 4px; /* 縦スクロールバーの幅 */
}

::-webkit-scrollbar-thumb {
background-color: rgba(38, 37, 36, 0.45); /* 色を付ける */
border-radius: 4px;
}

Copy link

Copilot AI Jul 11, 2025

Choose a reason for hiding this comment

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

A 4px scrollbar can be difficult for users with motor impairments to grab. Consider increasing the width or providing a hover state that enlarges the thumb to improve accessibility.

Suggested change
width: 4px; /* 縦スクロールバーの幅 */
}
::-webkit-scrollbar-thumb {
background-color: rgba(38, 37, 36, 0.45); /* 色を付ける */
border-radius: 4px;
}
width: 12px; /* Increased scrollbar width for better accessibility */
}
::-webkit-scrollbar-thumb {
background-color: rgba(38, 37, 36, 0.45); /* Color of the scrollbar thumb */
border-radius: 6px; /* Slightly larger border radius for better aesthetics */
transition: background-color 0.3s, width 0.3s; /* Smooth transition for hover effects */
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(38, 37, 36, 0.7); /* Darker color on hover for better visibility */
width: 16px; /* Enlarged thumb width on hover for easier grabbing */
}

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

@kitsne241 kitsne241 left a comment

Choose a reason for hiding this comment

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

#16 への対応で合ってますか?
おそらく環境依存の問題で、Windows だと実際に画面がどう見えているのかが知りたいです。キャプチャか何かを送ってもらえると 🙏

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

RegistrationView の全体が上揃えになっていて見栄えがわるいので直したほうがよさそう

スクリーンショット 2025-07-11 11 16 58

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

containerでスクロールするようにした関係でjustifycontent center消しちゃいました。上にmarginを追加することで修正します。

Comment thread src/assets/style.css
}

::-webkit-scrollbar {
width: 4px; /* 縦スクロールバーの幅 */
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

幅がこれだけ小さいと、ウィンドウ右端のスクロールバーをクリックしても「ウィンドウの横幅を変えたいんだな」判定になってしまって、スクロールバーを掴んでスクロールすることができなくなっています。そのユーザビリティを犠牲にしてでも取り組むべき変更なのかどうかは一考の余地があると思います

@kitsne241
Copy link
Copy Markdown
Collaborator

Macbook + Chrome だと、今の main がこんな感じです
スクリーンショット 2025-07-11 11 34 22

@mumumu6
Copy link
Copy Markdown
Member Author

mumumu6 commented Jul 11, 2025

image image

こんな感じです。合宿画面のほうスクロールバーの横に余白がないですね。

@kitsne241
Copy link
Copy Markdown
Collaborator

すみません、まず問題が何であるかを確認したいので #16 に移ってほしいです。お手数かけます 🙇
Windows で現在の main の表示にどんな問題が発生していて、それがこの PR でどう解決できるのかを確認したいです

@kitsne241
Copy link
Copy Markdown
Collaborator

#16 (comment)
ありがとうございます 👍

む、むずかしい…。ある環境に依存する問題に対応した結果他の環境での見え方が変わってしまっては本末転倒なので、なるべく他の環境を変えないようにしたいところです

この Web アプリは(合宿本番に)Android や iOS などのモバイル環境で使われることを第一に想定していて、その環境における見え方を一番イイ感じに保ちたいと考えています

この変更によってスクロールバーが確定で幅をとるようになると、横幅がせまいスマホなどの見え方を悪化させる可能性があります。かといってスクロールバーの横幅をなるべく狭くしてしまうと、それはそれでレビューで書いた通りの犠牲を生じます

どうしたものか…

@mumumu6
Copy link
Copy Markdown
Member Author

mumumu6 commented Jul 11, 2025

スマホのスクロールバーは細くて、macのスクロールバーは太いのがいいから固定にしたくないってことですか?
スマホには::webkitは効かないようなので問題はなさそうです

@kitsne241
Copy link
Copy Markdown
Collaborator

一時的にステージング環境をこのブランチに設定して実機でテストしてみましたが、
少なくとも Android の Chrome アプリでは ::-webkit-scrollbar の設定が効いていそうです

スクリーンショット 2025-07-11 15 56 10

@kitsne241
Copy link
Copy Markdown
Collaborator

Windows 以外の環境に無視できない影響がありそうな変更と見受けられます

ユーザーから「Windows で rucQ-UI を開くとスクロールバーがデフォルト表示になっていてダサい」という同様のフィードバックが届き次第再度検討するとして、今のところは main の状態を維持するというのでいかがでしょう…?

@mumumu6
Copy link
Copy Markdown
Member Author

mumumu6 commented Jul 11, 2025

rucqではないけど他のサイトで確認はしたんですが上手くいかないんですね
無視できないほど大きな変更だとは思わないですが、mainのままにしますか

@mumumu6 mumumu6 closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants