-
Notifications
You must be signed in to change notification settings - Fork 0
feat: アンケートの選択肢やタイトルが折り返されるように #154
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
bbcd1a0
cb52768
534bdb4
afa4059
db9163c
f50d494
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |||||||||
| :rules="[requiredRule]" | ||||||||||
| :disabled="!question.isOpen" | ||||||||||
| variant="underlined" | ||||||||||
| class="wrap-text" | ||||||||||
| ></v-text-field> | ||||||||||
| <v-number-input | ||||||||||
| v-if="question.type === 'free_number'" | ||||||||||
|
|
@@ -30,6 +31,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |||||||||
| :disabled="!question.isOpen" | ||||||||||
| variant="underlined" | ||||||||||
| control-variant="hidden" | ||||||||||
| class="wrap-text" | ||||||||||
| ></v-number-input> | ||||||||||
| <v-select | ||||||||||
| v-if="question.type === 'single'" | ||||||||||
|
|
@@ -42,6 +44,7 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |||||||||
| :items="question.options" | ||||||||||
| :item-value="(option) => option.id" | ||||||||||
| :item-title="(option) => option.content" | ||||||||||
| class="wrap-text" | ||||||||||
| ></v-select> | ||||||||||
| <v-select | ||||||||||
| v-if="question.type === 'multiple'" | ||||||||||
|
|
@@ -55,5 +58,20 @@ const requiredRule = (v: unknown) => (v === undefined || v === null ? '必須項 | |||||||||
| :items="question.options" | ||||||||||
| :item-value="(option) => option.id" | ||||||||||
| :item-title="(option) => option.content" | ||||||||||
| class="wrap-text" | ||||||||||
| ></v-select> | ||||||||||
| </template> | ||||||||||
|
|
||||||||||
| <style scoped> | ||||||||||
| .wrap-text :deep(.v-select__selection-text) { | ||||||||||
|
||||||||||
| <style scoped> | |
| .wrap-text :deep(.v-select__selection-text) { | |
| <style module> | |
| .wrapText :deep(.v-select__selection-text) { |
CSS Modules への変更をお願いしたいです!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moduleにするんだった。忘れてた。ありがとう!!
Outdated
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using :global(.v-list-item-title) without a parent scoping class will affect all v-list-item-title elements across the entire application, which may cause unintended side effects in other components. Following the pattern used in other components like EventEditorSettings.vue and QuestionShowField.vue, this should be scoped to a parent class, such as .multi-line-select :global(.v-list-item-title) to limit its impact to only the dropdown lists within this component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot による Review でも触れられていますが、CSS セレクタで :global とか :deep を使う場合は頭にクラスをつけると影響範囲が限定されて安心できそうです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<style module>式にと書いて欲しいかも。他の部分をふくむ