Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.6.1-beta01</Version>
<Version>9.6.1-beta02</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial class FullScreenButton
/// 获得/设置 退出全屏图标 默认 fa-solid fa-maximize
/// </summary>
[Parameter]
[Obsolete("已启用,请使用 Icon 参数 Please use Icon parameter")]
[Obsolete("已弃用,请使用 Icon 参数;Deprecated. Please use Icon parameter")]
[ExcludeFromCodeCoverage]
public string? FullScreenIcon { get => FullScreenExitIcon; set => FullScreenExitIcon = value; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
.bb-fs-on,
.bb-fs-open .bb-fs-off {
.bb-fs-on {
display: none;
}

.bb-fs-open .bb-fs-on {
.bb-fs-off {
display: inline-block;
}

:not(:root):fullscreen {
.bb-fs-on {
display: inline-block;
}

.bb-fs-off {
display: none;
}
}
5 changes: 0 additions & 5 deletions src/BootstrapBlazor/Components/Tab/Tab.razor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@

.tabs-body-content {
background-color: var(--bs-body-bg);

&.bb-fs-open {
padding: var(--bb-tabs-body-padding);
overflow: auto;
}
}
}

Expand Down
14 changes: 0 additions & 14 deletions src/BootstrapBlazor/wwwroot/modules/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,10 @@ export async function toggle(options) {

const enterFullscreen = async el => {
await el.requestFullscreen();

updateFullscreenState(el);
}

const exitFullscreen = async el => {
await document.exitFullscreen()

updateFullscreenState(el);
}

const updateFullscreenState = el => {
if (isFullscreen()) {
el.classList.add('bb-fs-open')
}
else {
el.classList.remove('bb-fs-open');
document.documentElement.classList.remove('bb-fs-open');
}
}

const isFullscreen = () => {
Expand Down