Skip to content

Commit 2b54de9

Browse files
committed
refine style of fill button
1 parent 4940cdf commit 2b54de9

6 files changed

Lines changed: 2558 additions & 2156 deletions

File tree

assets/debug-send-button.png

62.6 KB
Loading

calcit.cirru

Lines changed: 2521 additions & 2140 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{} (:about "|file is generated - never edit directly; learn cr edit/tree workflows before changing") (:package |app)
33
:configs $ {} (:init-fn |app.main/main!) (:reload-fn |app.main/reload!) (:version |0.0.1)
4-
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/
4+
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/ |respo-feather.calcit/
55
:entries $ {}
66
:files $ {}
77
|app.comp.container $ %{} :FileEntry
@@ -412,8 +412,10 @@
412412
if (:done? state)
413413
div
414414
{} $ :class-name (str-spaced css/row-middle css/gap8)
415+
if chrome-extension?
416+
comp-fill $ either (:answer state) "\""
417+
, nil
415418
comp-copy $ :answer state
416-
comp-fill $ either (:answer state) "\""
417419
=< nil 200
418420
comp-message-box (>> states :message-box)
419421
a $ {}
@@ -432,10 +434,12 @@
432434
|comp-fill $ %{} :CodeEntry (:doc |)
433435
:code $ quote
434436
defcomp comp-fill (text)
435-
div $ {} (:class-name style-fill) (:inner-text "|➚")
436-
:on-click $ fn (e d!)
437-
when chrome-extension? $ js/chrome.runtime.sendMessage
438-
js-object (:action |fill-text) (:text text)
437+
div
438+
{} (:class-name style-fill)
439+
:on-click $ fn (e d!)
440+
when chrome-extension? $ js/chrome.runtime.sendMessage
441+
js-object (:action |fill-text) (:text text)
442+
comp-i :send 12 :currentColor
439443
:examples $ []
440444
|comp-message-box $ %{} :CodeEntry (:doc |)
441445
:code $ quote
@@ -667,16 +671,12 @@
667671
|style-fill $ %{} :CodeEntry (:doc |)
668672
:code $ quote
669673
defstyle style-fill $ {}
670-
"\"&" $ {} (:position :relative) (:width 12) (:height 12) (:border-radius "\"2px")
671-
:border $ str "\"1.5px solid " (hsl 200 30 80)
672-
:cursor :pointer
673-
:user-select :none
674-
:display :inline-flex
675-
:align-items :center
676-
:justify-content :center
677-
:font-size 9
678-
:line-height "\"12px"
679-
:color $ hsl 200 70 40
674+
"\"&" $ {} (:cursor :pointer) (:user-select :none) (:display :inline-flex) (:align-items :center) (:justify-content :center) (:transition-duration "\"200ms")
675+
:color $ hsl 0 0 80
676+
:margin "\"0 4px 0 8px"
677+
"\"&:hover" $ {}
678+
:color $ hsl 0 0 40
679+
:transform "\"scale(1.06)"
680680
:examples $ []
681681
|style-gap12 $ %{} :CodeEntry (:doc |)
682682
:code $ quote
@@ -808,6 +808,7 @@
808808
"\"@google/genai" :refer $ GoogleGenAI Modality
809809
"\"../lib/image" :refer $ base64ToBlob
810810
"\"openai" :default OpenAI
811+
feather.core :refer $ comp-i
811812
:examples $ []
812813
|app.config $ %{} :FileEntry
813814
:defs $ {}

deps.cirru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
|Respo/respo.calcit |0.16.24
88
|calcit-lang/lilac |main
99
|calcit-lang/memof |0.0.17
10+
|Respo/respo-feather.calcit |main

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"axios": "^1.12.2",
66
"cirru-color": "^0.2.4",
77
"copy-text-to-clipboard": "^3.2.2",
8+
"feather-icons": "^4.29.2",
89
"openai": "^6.16.0"
910
},
1011
"devDependencies": {

yarn.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)