Compare commits

...

2 Commits

Author SHA1 Message Date
ming 55715a20eb scroll y area height fix 해제 2025-04-25 13:53:20 +09:00
RubyOn 29841e2d15 스케쥴이 nil 일때 처리 2025-04-25 13:50:16 +09:00
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ class SchedulesController < ApplicationController
def schedule_edit_update
error_messages = []
params[:schedule].each do |id, attributes|
params[:schedule]&.each do |id, attributes|
schedule = Schedule.find_by(id: id)
next unless schedule

View File

@ -23,20 +23,20 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
</head>
<body class="h-screen overflow-hidden bg-base-background text-base-text min-w-[400px] overflow-x-auto">
<body class="min-h-screen bg-base-background text-base-text min-w-[400px] overflow-x-auto h-full">
<%= turbo_frame_tag :modals %>
<main class="flex flex-col h-full">
<%= render "partials/header" %>
<div class="flex flex-row flex-1 w-full overflow-hidden">
<div class="flex flex-row flex-1 w-full">
<%= render "partials/sidebar" %>
<div class="flex-1 h-full pb-4 pr-4">
<div class="flex-1 h-full content">
<% if flash[:notice] %>
<div class="m-4 rounded px-4 py-2 bg-accept text-white">
<div class="rounded px-4 py-2 bg-accept text-white">
<%= raw flash[:notice] %>
</div>
<% elsif flash[:alert] %>
<div class="m-4 rounded px-4 py-2 bg-danger text-white">
<div class="rounded px-4 py-2 bg-danger text-white">
<%= raw flash[:alert] %>
</div>
<% end %>