Refactor ShareFileDialog header to improve layout and ensure text overflow handling
This commit is contained in:
@@ -132,7 +132,8 @@ class _ShareFileDialogState extends State<ShareFileDialog> {
|
|||||||
// Header
|
// Header
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Expanded(
|
||||||
|
child: Text(
|
||||||
'Share "${widget.fileName}"',
|
'Share "${widget.fileName}"',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: AppTheme.primaryText,
|
color: AppTheme.primaryText,
|
||||||
@@ -142,7 +143,8 @@ class _ShareFileDialogState extends State<ShareFileDialog> {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
const Spacer(),
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => Navigator.of(context).pop(),
|
onPressed: () => Navigator.of(context).pop(),
|
||||||
icon: Icon(Icons.close, color: AppTheme.secondaryText),
|
icon: Icon(Icons.close, color: AppTheme.secondaryText),
|
||||||
|
|||||||
BIN
go_cloud/api
BIN
go_cloud/api
Binary file not shown.
@@ -266,10 +266,10 @@ func NewRouter(cfg *config.Config, db *database.DB, jwtManager *jwt.Manager, aut
|
|||||||
r.With(middleware.Permission(db, auditLogger, permission.FileRead)).Get("/share", func(w http.ResponseWriter, req *http.Request) {
|
r.With(middleware.Permission(db, auditLogger, permission.FileRead)).Get("/share", func(w http.ResponseWriter, req *http.Request) {
|
||||||
getFileShareLinkHandler(w, req, db)
|
getFileShareLinkHandler(w, req, db)
|
||||||
})
|
})
|
||||||
r.With(middleware.Permission(db, auditLogger, permission.FileWrite)).Post("/share", func(w http.ResponseWriter, req *http.Request) {
|
r.With(middleware.Permission(db, auditLogger, permission.FileRead)).Post("/share", func(w http.ResponseWriter, req *http.Request) {
|
||||||
createFileShareLinkHandler(w, req, db)
|
createFileShareLinkHandler(w, req, db)
|
||||||
})
|
})
|
||||||
r.With(middleware.Permission(db, auditLogger, permission.FileWrite)).Delete("/share", func(w http.ResponseWriter, req *http.Request) {
|
r.With(middleware.Permission(db, auditLogger, permission.FileRead)).Delete("/share", func(w http.ResponseWriter, req *http.Request) {
|
||||||
revokeFileShareLinkHandler(w, req, db)
|
revokeFileShareLinkHandler(w, req, db)
|
||||||
})
|
})
|
||||||
// WOPI session for org files
|
// WOPI session for org files
|
||||||
|
|||||||
Reference in New Issue
Block a user