Skip to content

Commit f17d24e

Browse files
authored
Make paste title mouseover show full paste title, and fix paste error css (#104)
1 parent 78d48ef commit f17d24e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎app/views/home/index.html.erb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<% @latest_pastes.each do |paste| %>
2525
<div class="text-sm">
2626
<div class="grid grid-cols-12 items-center">
27-
<%= link_to short_paste_path(paste.shortcode), class: "#{link_class(variant: :bold)} col-span-9 truncate" do %>
27+
<%= link_to short_paste_path(paste.shortcode), class: "#{link_class(variant: :bold)} col-span-9 truncate", title: paste.title do %>
2828
<%= paste.title %>
2929
<% end %>
3030
<span class="col-span-3 text-right text-xs text-[var(--muted)]"><%= time_ago_in_words(paste.created_at) %> ago</span>

‎app/views/shared/_createpaste.html.erb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="p-4">
66
<%= form_with data: { controller: "unsaved-changes" }, model: @paste, class: "space-y-3" do |f| %>
77
<% if @paste.errors.any? %>
8-
<div class="border border-red-300 bg-red-50 p-3 text-sm">
8+
<div class="border border-[var(--border-danger)] bg-[var(--bg-danger)] text-[var(--text-danger)] p-3 text-sm">
99
<div class="font-bold mb-1">Error</div>
1010
<ul class="list-disc pl-5">
1111
<% @paste.errors.full_messages.each do |msg| %>

0 commit comments

Comments
 (0)