-
Notifications
You must be signed in to change notification settings - Fork 0
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
Design修正-2 #71
Design修正-2 #71
Conversation
<div class="input-group date" id="datetimepicker1" data-target-input="nearest"> | ||
<input type="text" class="form-control datetimepicker-input" data-target="#datetimepicker1" name="q[food_date_gteq]" id="q_food_date_gteq"/> | ||
<div class="input-group-append" data-target="#datetimepicker1" data-toggle="datetimepicker"> | ||
<div class="input-group-text"><i class="fa fa-calendar"></i></div> | ||
</div> | ||
</div> | ||
<div>~</div> | ||
<div class="input-group date" id="datetimepicker2" data-target-input="nearest"> | ||
<input type="text" class="form-control datetimepicker-input" data-target="#datetimepicker2" name="q[food_date_lteq]" id="q_food_date_lteq"/> | ||
<div class="input-group-append" data-target="#datetimepicker2" data-toggle="datetimepicker"> | ||
<div class="input-group-text"><i class="fa fa-calendar"></i></div> | ||
</div> | ||
</div> |
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.
var script = document.createElement('script'); | ||
script.src = 'https://maps.googleapis.com/maps/api/js?key=' + process.env.GOOGLE_CLOUD_API + '&callback=initMap'; | ||
script.defer = true; | ||
import { Loader } from '@googlemaps/js-api-loader'; |
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.
https://developers.google.com/maps/documentation/javascript/overview#js_api_loader_package
上記を参考に、inline loadingからdynamic loadingに変更。
@@ -22,7 +22,7 @@ def store_dir | |||
# end | |||
|
|||
# Process files as they are uploaded: | |||
process resize_to_fit: [200, 300] | |||
process resize_to_fill: [300, 300, "Center"] |
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.
https://qiita.com/wann/items/c6d4c3f17b97bb33936f
上記を参考に、一辺300pxの正方形を切り抜くことにした。
事象的にturbolinksが原因の可能性があるので、一度外して再度検証してもらえますか? 上記でも事象が再現される場合は、下記のコメントの対応を試してみてください。 あと、参照してるライブラリのStarが少ないのと、14カ月間更新ないのがちと不安ではありますね。Issue見るとこのgemを採用したのはモバイル端末でのみカレンダー入力がうまくいかなかったからとのことですが、他に問題を解決すべきライブラリはなさそうだったと言うことですかね。 |
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.
jsが動かない件以外は大きな問題なさそうです。
app/models/user.rb
Outdated
find_or_create_by!(email: 'email1@com') do |user| | ||
user.password = SecureRandom.urlsafe_base64 | ||
# user.confirmed_at = Time.now # Confirmable を使用している場合は必要 | ||
user.location_id = 1_850_147 | ||
user.address = '東京' | ||
user.latitude = 35.7090259 | ||
user.longitude = 139.7319925 | ||
end |
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.
外部から入力されたパラメーターで作るのでないなら、seedを使ってguestユーザーを作っておいた方がいいかと思います。
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.
確かにそうですね。
ありがとうございます。対応します。
|
よかったです。「この機能を外すことがRailsアプリ開発の第一歩」と揶揄されるくらい微妙な機能なんですよね。
了解です。今回はポートフォリオなので問題ないですが、現場だと保守していく必要があるので、ライブラリの選定などの条件に、「定期的にメンテナンスされてるか?」、「広く使われていて信用性に足りるか?」と言う点は入るので、意識だけしておいてください。 |
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.
LGTM
これらの観点が不足していました。 |
概要
前PRに引き続き、デザインの修正と、機能面の修正を行いました。
該当issue
参考資料
うまく行っていない事象
概要
( 動作するとは、カレンダーアイコンをクリックしたときに、カレンダーが表示されることを表しています。)
カレンダー表示に使用している技術
解決方法
聞きたいこと
コンテナ内のjsファイルを修正することになると思うのですが、
./qs bash web
でコンテナに入り、vimでファイル修正をするというやり方で合っていますでしょうか。ライブラリを修正するということをしたことがないので、実施前に確認したいです。