Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chatterbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
element-hq
Chatterbox
Commits
21c9d9d4
Commit
21c9d9d4
authored
3 years ago
by
Midhun Suresh
Browse files
Options
Downloads
Patches
Plain Diff
Style start button
parent
059b180b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/style.css
+18
-1
18 additions, 1 deletion
src/style.css
src/ui/res/chat-bubbles.svg
+11
-0
11 additions, 0 deletions
src/ui/res/chat-bubbles.svg
src/ui/views/RootView.ts
+1
-1
1 addition, 1 deletion
src/ui/views/RootView.ts
with
30 additions
and
2 deletions
src/style.css
+
18
−
1
View file @
21c9d9d4
#chatterbox
{
#chatterbox
{
position
:
absolute
;
position
:
absolute
;
width
:
500px
;
bottom
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
}
}
...
@@ -18,6 +17,24 @@ todo: this style should actually be in hydrogen-web
...
@@ -18,6 +17,24 @@ todo: this style should actually be in hydrogen-web
left
:
0
;
left
:
0
;
}
}
.StartChat
{
width
:
32px
;
height
:
32px
;
border
:
none
;
margin
:
5px
;
background
:
no-repeat
center
url('./ui/res/chat-bubbles.svg')
,
#295dbd
;
border-radius
:
2px
;
cursor
:
pointer
;
}
.hydrogen
{
background-color
:
transparent
!important
;
}
.hydrogen
:not
(
.StartChat
)
{
background-color
:
white
;
}
body
{
body
{
background-color
:
#205a634
d
;
background-color
:
#205a634
d
;
}
}
This diff is collapsed.
Click to expand it.
src/ui/res/chat-bubbles.svg
0 → 100644
+
11
−
0
View file @
21c9d9d4
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<g
clip-path=
"url(#clip0)"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M5.90964 11.5297C9.09231 11.5297 11.6724 8.94865 11.6724 5.76483C11.6724 2.581 9.09231 0 5.90964 0C2.72697 0 0.146904 2.581 0.146904 5.76483C0.146904 6.65678 0.3494 7.50142 0.710912 8.25525L0.0648767 10.3556C-0.171716 11.1248 0.550948 11.8442 1.31906 11.6041L3.39724 10.9544C4.15657 11.323 5.00898 11.5297 5.90964 11.5297Z"
fill=
"white"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M5.03851 12.8449C5.70399 13.1151 6.4314 13.2638 7.19345 13.2638C10.3676 13.2638 13.5 10.6832 13.5 7.49979C13.5 6.63255 13.2676 5.81005 12.8651 5.07227C14.6487 6.05071 15.8583 7.94999 15.8583 10.1326C15.8583 11.0243 15.6564 11.8688 15.2959 12.6224L15.9404 14.7232C16.1765 15.4926 15.4533 16.2114 14.6854 15.9708L12.6155 15.322C11.8585 15.6902 11.0088 15.8966 10.111 15.8966C7.91459 15.8966 6.00594 14.661 5.03851 12.8449Z"
fill=
"white"
/>
</g>
<defs>
<clipPath
id=
"clip0"
>
<rect
width=
"16"
height=
"16"
fill=
"white"
/>
</clipPath>
</defs>
</svg>
This diff is collapsed.
Click to expand it.
src/ui/views/RootView.ts
+
1
−
1
View file @
21c9d9d4
...
@@ -23,6 +23,6 @@ export class RootView extends TemplateView<RootViewModel> {
...
@@ -23,6 +23,6 @@ export class RootView extends TemplateView<RootViewModel> {
class
StartView
extends
TemplateView
<
RootViewModel
>
{
class
StartView
extends
TemplateView
<
RootViewModel
>
{
render
(
t
:
Builder
<
RootViewModel
>
,
vm
:
RootViewModel
)
{
render
(
t
:
Builder
<
RootViewModel
>
,
vm
:
RootViewModel
)
{
return
t
.
button
({
className
:
"
StartChat
"
,
onClick
:
()
=>
vm
.
start
()
}
,
"
Start Chat
"
);
return
t
.
button
({
className
:
"
StartChat
"
,
onClick
:
()
=>
vm
.
start
()
});
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment