`GenericContentMainArea`: optional close button rendered by the core
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Start from the reference implementation in external-video-player-graphql/component.tsx (the Styled.ExternalVideoCloseButton block) and compare it with the current GenericContentMainArea component and its GenericContentMainAreaProps. Read how the presenter flag reaches that content and how RTL and primary styling are handled, since the new closeButton option must reuse the same button and layering. Done means the prop is added, core renders the button only for the presenter (or behind an allowed flag) above plugin content, and no item re-creation is needed on presenter change.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The external video player shows a close button in the top right corner of the content, for the presenter only:
// external-video-player-graphql/component.tsx
isPresenter ? (
<Styled.ExternalVideoCloseButton
color="primary" icon="close" size="sm" hideLabel
onClick={stopExternalVideoShare}
label={intl.formatMessage(intlMessages.closeExternalVideoLabel)}
/>
) : null
GenericContentMainArea only takes contentFunction, so a plugin has to draw its own button inside its content, copying the core styles (position: absolute; top: 0; right: 0, RTL handling, primary colors). It also has to re-render that content when the presenter changes, without recreating the item, which would put it back on top of the presentation area for everyone. The result can drift from the core look, and every plugin does it a little differently.
Proposal
Add an optional close button to GenericContentMainAreaProps, rendered by the core with the same component as the external video:
new GenericContentMainArea({
contentFunction: (element) => { ... },
closeButton: {
label: 'Stop sharing website', // aria-label / tooltip
onClick: () => { /* remove the content */ },
},
});
The core would show it only to the presenter, as for the external video, or the plugin could choose with an allowed flag. It should follow RTL and stay above the plugin content.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 17
- Forks
- 18
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bigbluebutton/bigbluebutton-html-plugin-sdk
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
`useChatMessageDomElements` never evicts removed elements from its storePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
Todos los issues de bigbluebutton/bigbluebutton-html-plugin-sdk
Issues similares
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
keyxmakerx/Chronicle#2190 ·
Los mantenedores suelen responder en 1 día
-
ai bug design good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
neomjs/neo-agent-institution#927 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gramps-project/gramps-web#1671 ·
Los mantenedores suelen responder en 1 día
-
项目日志弹出窗尺寸可拉伸功能Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
ログイン中の404画面にヘッダーとナビを出すAbiertoCodex使用可 コード
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ryuki-moro/Nicomaru#218 ·
Los mantenedores suelen responder en 3 días