diff --git a/app/assets/stylesheets/rooms.scss b/app/assets/stylesheets/rooms.scss index 16627859..da15ed4e 100644 --- a/app/assets/stylesheets/rooms.scss +++ b/app/assets/stylesheets/rooms.scss @@ -121,4 +121,8 @@ #room-owner-name { line-height: 12px; +} + +.create-room-button { + width: 49%; } \ No newline at end of file diff --git a/app/views/shared/modals/_create_room_modal.html.erb b/app/views/shared/modals/_create_room_modal.html.erb index 255ff574..cab6f6b4 100644 --- a/app/views/shared/modals/_create_room_modal.html.erb +++ b/app/views/shared/modals/_create_room_modal.html.erb @@ -28,7 +28,7 @@ - <%= f.text_field :name, id: "create-room-name", class: "form-control text-center", value: "", placeholder: t("modal.create_room.name_placeholder"), autocomplete: :off %> + <%= f.text_field :name, id: "create-room-name", class: "form-control text-center", value: "", placeholder: t("modal.create_room.name_placeholder"), autocomplete: :off, required: true %>
<%= t("modal.create_room.not_blank") %>
@@ -91,8 +91,12 @@
- <%= f.submit t("modal.create_room.create"), class: "create-only btn btn-primary btn-block" %> - <%= f.submit t("modal.room_settings.update"), class: "update-only btn btn-primary btn-block" %> + <%= f.submit t("modal.create_room.create"), class: "create-only btn btn-primary create-room-button" %> + <%= f.submit t("modal.room_settings.update"), class: "update-only btn btn-primary create-room-button" %> + +
<% end %>