Skip to content

Commit 7504bbd

Browse files
authored
doc(DialButton): update dial button (#6613)
* refactor: 代码格式化 * doc: 重构更新日志按钮样式
1 parent 7a6156e commit 7504bbd

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

src/BootstrapBlazor.Server/Components/Layout/MainLayout.razor

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,21 @@
2929
<ThemeMode></ThemeMode>
3030
</DialButtonItem>
3131
<DialButtonItem>
32-
<LinkButton TooltipPlacement="Placement.Left" ButtonStyle="ButtonStyle.Circle" Color="Color.None" TooltipText="@ChatTooltip" class="btn-fade btn-chat" Url="./ai-chat" Icon="fa-solid fa-comments"></LinkButton>
32+
<Tooltip Title="@ChatTooltip" Placement="Placement.Left" class="btn btn-circle btn-fade btn-dial-item d-flex">
33+
<a href="./ai-chat">
34+
<i class="fa-solid fa-comments"></i>
35+
</a>
36+
</Tooltip>
3337
</DialButtonItem>
3438
<DialButtonItem>
3539
<ThemeChooser></ThemeChooser>
3640
</DialButtonItem>
3741
<DialButtonItem>
38-
<LinkButton TooltipPlacement="Placement.Left" ButtonStyle="ButtonStyle.Circle" Color="Color.None" TooltipText="@Title" class="btn-fade btn-update" Url="@WebsiteOption.Value.WikiUrl" Target="_blank" ImageUrl="@WebsiteOption.Value.GetAssetUrl("images/log.svg")"></LinkButton>
42+
<Tooltip Title="@ChatTooltip" Placement="Placement.Left" class="btn btn-circle btn-fade btn-dial-item d-flex">
43+
<a href="@WebsiteOption.Value.WikiUrl" target="_blank">
44+
<i class="fa-solid fa-file-circle-check"></i>
45+
</a>
46+
</Tooltip>
3947
</DialButtonItem>
4048
</ChildContent>
4149
</DialButton>

src/BootstrapBlazor.Server/Components/Layout/MainLayout.razor.css

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,31 +96,20 @@
9696
opacity: 1;
9797
}
9898

99-
::deep .btn-update {
100-
--bs-btn-bg: var(--bb-layout-button-update-bg);
101-
--bs-btn-hover-bg: var(--bs-btn-bg);
102-
--bs-btn-active-bg: var(--bs-btn-bg);
103-
display: flex;
104-
justify-content: center;
105-
align-items: center;
106-
}
107-
108-
::deep .btn-update img {
109-
width: 55%;
110-
margin-inline-start: 2px;
111-
}
112-
113-
::deep .btn-chat {
99+
::deep .btn-dial-item {
114100
--bs-btn-bg: var(--bb-layout-button-bg);
115101
--bs-btn-hover-bg: var(--bb-layout-button-hover-bg);
116102
--bs-btn-active-bg: var(--bb-layout-button-active-bg);
117103
box-shadow: var(--bb-layout-button-shadow);
118104
display: flex;
119105
align-items: center;
120106
justify-content: center;
121-
color: var(--bb-button-chat-color);
122107
}
123108

109+
::deep .btn-dial-item a {
110+
color: var(--bb-button-chat-color);
111+
}
112+
124113
::deep .btn-theme-mode {
125114
--bs-btn-bg: var(--bb-layout-button-bg);
126115
--bs-btn-hover-bg: var(--bb-layout-button-hover-bg);

src/BootstrapBlazor.Server/wwwroot/images/log.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)